Fastest way to parse large XML?

Hi Guys,

I’ve been working on a project that requires to parse a large amount of XML data fast. A large amount being 3MB+ per file. I’ve designed the XML so I know it’s structure inside out. The design of the XML is not the issue just the fact there is a huge amount of it!

So far, XPath is too slow for the job. I’ve tried to parse the XML with the standard XML methods in flash - again a bit slow - timing out due to the large amount of data.

Flash loads the data in pretty quickly taking a only a few seconds.

if anybody can tell me the how to parse data in a fast way let me know.

The way i’ve got it working with reasonable speed is through using setInterval after it loads the xml to parse the data straight off. Although this works quite nicely the issue is now the amount of ram (almost 200MB!! has to be a better way) it takes to hold the parsed data. The parsed data is quite large and is held in arrays. I was thinking is there a way to use the XML in its raw format?

So what i need to know is what is the fastest way to parse xml data and one that will take up the least amount of cpu/ram resources or a compromise?

Anyways, if this is a bit vague then let me know - i will try to clarify :wink:

Thanks guys!