unable to find an inherited method for function ‘saveXML’ for signature ‘"character"’ unable to find an inherited method for function ‘saveXML’ for signature ‘"character"’ r r

unable to find an inherited method for function ‘saveXML’ for signature ‘"character"’


url <- "http://www.stat.purdue.edu/~mdw/490M/cdcatalog.xml"    doc <- xmlRoot(xmlTreeParse(url, useInternalNodes = TRUE))xpathSApply(doc, "//CATALOG/CD/PRICE", xmlValue)

I think this has got to do with resolution of namespaces. useInternalNodes = TRUE is required for xpath to use getNodeSet()


I did everything same to get the same error. But I realized that I missed useInternalNodes = TRUE. When I included this in


doc <- xmlParse("http://www.stat.purdue.edu/~mdw/490M/cdcatalog.xml")

should do it...