supportsExpat()
supportsLibxml()
TRUE
if the corresponding library
has been linked into the package.
xmlEventParse
# use Expat if possible, otherwise libxml
fileName <- system.file("exampleData", "mtcars.xml", package="XML")
xmlEventParse(fileName, useExpat = supportsExpat())
Run the code above in your browser using DataLab