
Last chance! 50% off unlimited learning
Sale ends in
This uses the NSCLEAN
option for xmlParse
xmlCleanNamespaces(doc, options = integer(), out = docName(doc), ...)
NSCLEAN
is added to this.xmlParse
FALSE
to avoid writing the new document.xmlParse
f = system.file("exampleData", "redundantNS.xml", package = "XML")
doc = xmlParse(f)
print(doc)
newDoc = xmlCleanNamespaces(f, out = FALSE)
Run the code above in your browser using DataLab