Ok. Pardon me. Its is not a bug. My XML is malformed. The program that generates writes things like: <agecat>>5yr</agecat>
Which make the XML unsable. Sorry everyone Caveman On Wed, Aug 25, 2010 at 5:31 AM, Duncan Temple Lang <dun...@wald.ucdavis.edu > wrote: > > xmlDoc() is not the function to use to parse a file. > > Use > > doc = xmlParse("Malaria_Grave.xml") > > > xmlDoc() is for programmatically creating a new XML within R. > It could be more robust to being called with a string, but > the key thing here is that it is not the appropriate function for what > you want. > > > Also, if there had been a problem with the parsing, you'd need to give > me/us the offending XML file so that we could have a chance of reproducing > the problem. > > D. > > > On 8/24/10 2:35 PM, Orvalho Augusto wrote: > > I have one XML file with 30MB that I need to read the data. > > > > I try this; > > library(XML) > > doc <- xmlDoc("Malaria_Grave.xml") > > > > And R answers like this > > *** caught segfault *** > > address 0x5, cause 'memory not mapped' > > > > Traceback: > > 1: .Call("RS_XML_createDocFromNode", node, PACKAGE = "XML") > > 2: xmlDoc("Malaria_Grave.xml") > > > > Possible actions: > > 1: abort (with core dump, if enabled) > > 2: normal R exit > > 3: exit R without saving workspace > > 4: exit R saving workspace > > > > > > Or I try this: > > doc <- xmlTreeParse("Malaria_Grave.xml") > > > > I get this > > xmlParseEntityRef: no name > > xmlParseEntityRef: no name > > Error: 1: xmlParseEntityRef: no name > > 2: xmlParseEntityRef: no name > > > > Please guys help this simple mortal! > > Caveman > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > R-help@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.