Re: Read and parse large XML-files



On Feb 24, 2:58 pm, Crypto Logic <cry...@xxxxxxxxx> wrote:
Hi,

I am trying to read and parse a large XML-file.

The XML-file represents the data created by a custom laboratory software
that writes measurement data and some setup information into an ASCII-text
file.

So I have tried reading the file - approx. 20MB in size - using readxml to
create the node and example 3 of the Matlab help for xmlread.

Unfortunately, the file is so large that I got java heap errors at first and
had to increase memory area for java. Then what happened was that xmlread
could create the node but the example 3 function to parse the XML file ran
for about half an hour and then also quit displaying an error.

1.) What can I do to read and parse large XML-files?

2.) The example-3-help function for the readxml-command converts an XML file
into a Matlab structure. I have found that at least half of the structure
fields is useless because it creates empty fields. What can I do to improve
the example 3 function to successfully read in XML files?

Thanks for any hint and kind regards,
Crypto.

One suggestion is Google the term "large XML files". I tried this and
the first thing that came up was:
XML.com: Decomposition, Process, Recomposition
In Uche Ogbuji's latest Python and XML column he explores a pattern
for handling very large XML files easily and efficiently. see:
http://www.xml.com/pub/a/2004/07/28/py-xml.html

Howard

.



Relevant Pages

  • Read and parse large XML-files
    ... I am trying to read and parse a large XML-file. ... What can I do to read and parse large XML-files? ... fields is useless because it creates empty fields. ... the example 3 function to successfully read in XML files? ...
    (comp.soft-sys.matlab)
  • Read and parse large XML-files
    ... I am trying to read and parse a large XML-file. ... that writes measurement data and some setup information into an ASCII-text ... The example-3-help function for the readxml-command converts an XML file ...
    (comp.soft-sys.matlab)
  • Re: XML parser and writer
    ... easily parse and write new XML files. ... developed and I may later so any API I use will have to work w/o that for ... Can anyone suggest a simple API for parsing/writing my own made-up ...
    (comp.lang.java.programmer)
  • Re: XML parser and writer
    ... I'd parse the file and have the data available throughout the execution of the program. ... I don't have a DTD or schema developed and I may later so any API I use will have to work w/o that for now. ... Can anyone suggest a simple API for parsing/writing my own made-up XML files? ... I mentioned this issue to a guy at work and he mentioned JAXB so I'll be looking into that. ...
    (comp.lang.java.programmer)
  • Re: XML parser and writer
    ... Therefore I will need to both easily parse ... later so any API I use will have to work w/o that for now. ... suggest a simple API for parsing/writing my own made-up XML files? ...
    (comp.lang.java.programmer)