Displaying 1 result from an estimated 1 matches for "parentfil".
Did you mean:
parentfile
2005 May 27
1
xmlAttrs and problems with reading node attributes of XML file (b ug?)
...ider the following code:
require(XML)
xmlFile = paste( "<?xml version=\"1.0\"
encoding=\"ISO-8859-1\"?>\n",
"<mzXML xmlns=\"a\" xmlns:xsi=\"b\"
xsi:schemaLocation=\"c\">\n",
"<parentFile a=\"a\" b=\"b\" />\n",
"</mzXML>\n")
cat(xmlFile)
a = function(x,...){
cat("Attributes of ", xmlName(x), ": ");
print(xmlAttrs(x));
cat("\n");
NULL
}
xmlTreeParse(file=x...