Re: [R] Parsing a XML file

2010-08-27 Thread Orvalho Augusto
Ok. Pardon me. Its is not a bug. My XML is malformed. The program that generates writes things like: >5yr Which make the XML unsable. Sorry everyone Caveman On Wed, Aug 25, 2010 at 5:31 AM, Duncan Temple Lang wrote: > > xmlDoc() is not the function to use to parse a file. > > Use > > doc

Re: [R] Parsing a XML file

2010-08-24 Thread Duncan Temple Lang
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 wa

Re: [R] Parsing a XML file

2010-08-24 Thread Orvalho Augusto
My system is an Ubuntu 9.10 32bit: #uname -a Linux cavemanpc 2.6.31-22-generic #63-Ubuntu SMP Wed Aug 18 22:54:26 UTC 2010 i686 GNU/Linux # free -m total used free sharedbuffers cached Mem: 3000 1847 1152 0120961 -/

Re: [R] Parsing a XML file

2010-08-24 Thread Orvalho Augusto
It seems to be a bug on the XML package. This is what I run (and it is not the only file): > library("XML") > doc <- xmlDoc("Malaria_Grave.xml") *** caught segfault *** address 0x9, cause 'memory not mapped' Traceback: 1: .Call("RS_XML_createDocFromNode", node, PACKAGE = "XML") 2: xmlDoc("Mal

Re: [R] Parsing a XML file

2010-08-24 Thread Gavin Simpson
On Tue, 2010-08-24 at 23:35 +0200, 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' This is most

[R] Parsing a XML file

2010-08-24 Thread Orvalho Augusto
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("Mala