1\name{libxmlVersion} 2\alias{libxmlVersion} 3\alias{libxmlFeatures} 4\title{Query the version and available features of the libxml library.} 5\description{ 6\code{libxmlVersion} retrieves the version of the libxml 7library used when installing this XML package. 8\code{libxmlFeatures} returns a named logical vector 9indicating which features are enabled. 10} 11\usage{ 12libxmlVersion(runTime = FALSE) 13libxmlFeatures() 14} 15\arguments{ 16 \item{runTime}{a logical value indicating whether to retrieve the version information 17 describing libxml when the R package was compiled or the run-time version. 18 These may be different if a) a new version of libxml2 is installed after the package is installed, 19 b) if the package was installed as a binary package built on a different machine. 20 } 21} 22\value{ 23\code{libxmlVersion} returns a named list with 24fields 25\item{major}{the major version number, either 1 or 2 26 indicating the old or new-style library.} 27\item{minor}{the within version release number.} 28\item{patch}{the within minor release version number} 29 30\code{libxmlFeatures} returns a logical vector with names given by: 31\code{ 32 [1] "THREAD" "TREE" "OUTPUT" "PUSH" "READER" 33 [6] "PATTERN" "WRITER" "SAX1" "FTP" "HTTP" 34[11] "VALID" "HTML" "LEGACY" "C14N" "CATALOG" 35[16] "XPATH" "XPTR" "XINCLUDE" "ICONV" "ISO8859X" 36[21] "UNICODE" "REGEXP" "AUTOMATA" "EXPR" "SCHEMAS" 37[26] "SCHEMATRON" "MODULES" "DEBUG" "DEBUG_MEM" "DEBUG_RUN" 38[31] "ZLIB" 39} 40Elements are either \code{TRUE} or \code{FALSE} indicating whether support 41was activatd for that feature, or \code{NA} if that feature is not 42part of the particular version of libcurl. 43} 44 45\references{\url{http://www.w3.org/XML}, \url{http://www.xmlsoft.org}, 46\url{http://www.omegahat.net} } 47\author{ Duncan Temple Lang } 48 49%\seealso{} 50 51\examples{ 52 ver <- libxmlVersion() 53 if(is.null(ver)) { 54 cat("Relly old version of libxml\n") 55 } else { 56 if(ver$major > 1) { 57 cat("Using libxml2\n") 58 } 59 } 60} 61\keyword{IO} 62