Advertisement

09.17.2008 at 07:13AM PDT, ID: 23738586 | Points: 500
[x]
Attachment Details

Parsing a large XML file in Coldfusion

Asked by paddycobbett in Cold Fusion Markup Language, Extensible Markup Language (XML), XPath

Tags:

Am i right in thinking that Coldfusion does not have an inbuilt SAX parser? I am parsing what could potentially be a large xml file (although not massive), and am concerned about performance issues using the inbuilt DOM parser. I just want random access to the file, so a SAX parser would be ideal.

What do Coldfusion developers use in this case? Otherwise, and on a side note, size is relative so i may be overly concerned, what size xml file should be considered too heavy (or a cause for concern) for performing routine read-only random access to an xml file using (a DOM parser in) coldfusion?

Alternatively, are the main performance issues with DOM parsers associated with parsing them? i.e. reading them in to memory? .. or are they also very slow when searching for nodes? I ask because it occurred to me since i only need read access that i could parse/read it into memory and then access it as an xml object. Are there any flaws in that approach?Start Free Trial
 
Keywords: Parsing a large XML file in Coldfusion
 
Loading Advertisement...
 
[+][-]09.23.2008 at 07:46PM PDT, ID: 22556219

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628