\Header{libxmlVersion}{Get the version of the libxml library.}
\keyword{IO}{libxmlVersion}
\begin{Description}\relax
This currently retrieves the version of the libxml
library used when installing this XML package.
\end{Description}
\begin{Usage}
\begin{verbatim}
libxmlVersion()
\end{verbatim}
\end{Usage}
\begin{Details}\relax
This computes the version at compile time.
In the future we will hopefully find a way to
find the run-time version.
\end{Details}
\begin{Value}
A named list with
fields
\begin{ldescription}
\item[\code{major}] the major version number, either 1 or 2
indicating the old or new-style library.
\item[\code{minor}] the within version release number.
\item[\code{patch}] the within minor release version number
\end{ldescription}
\end{Value}
\begin{Author}\relax
Duncan Temple Lang
\end{Author}
\begin{References}\relax
\url{http://www.w3.org/XML}, \url{http://www.xmlsoft.org},
\url{http://www.omegahat.org}
\end{References}
\begin{SeeAlso}\relax
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
 ver <- libxmlVersion()
 if(is.null(ver)) {
   cat("Relly old version of libxml\n")
 } else {
   if(ver$major > 1) {
     cat("Using libxml2\n")
   }
 }
\end{ExampleCode}
\end{Examples}

