f = system.file("exampleData", "mtcars.xml", package="XML")
# Same as xmlParse()
xmlParseDoc(f)
txt =
'
'
xmlParseDoc(txt, NSCLEAN, asText = TRUE)
txt =
'
'
xmlParseDoc(txt, c(NSCLEAN, NOERROR), asText = TRUE)
Run the code above in your browser using DataLab