A lot of content available for XML presentation

I finished creating my presentation on XML yesterday. One of the things that became obvious was that there is a lot more than an hours worth of content on XML.

Even with all of the XML features in ColdFusion, there are still some shortcomings in the way that ColdFusion handles XML.

One of the key parts of the presentation will be StAX, the new Java API for dealing with XML. One of the key features of StAX is that it uses a pull parser when dealing with large XML files.

One of the issues I have run into with using large XML files in ColdFusion is you have to load the whole file into memory in order for the DOM parser to work.

Using a stream based parser is much more effecient when dealing with large XML files because it does not have to load the whole file into memory.

I am plugging the JaxFusion meeting this Tuesday for the JaxFusion user group because this will be covered at the meeting.

Comments
Ben Nadel's Gravatar Dave,

Will you be posting any example code somewhere about this? I am working on an Application that uses an XML database and I am worries about reading in very large XML files. Right now, it's just a CFFile with an XMLParse() call but it looks like this parse as you stream methodology could work very well!

I would love to be able to optimize my LoadDataFile() method:

http://www.bennadel.com/index.cfm?dax=skinspider.v...

Please keep us updated. Thanks!
# Posted By Ben Nadel | 10/2/06 8:41 AM
David Fekke's Gravatar Ben,

I will be posting code example on my blog. Check my blog on Wednesday the forth of October.

David.
# Posted By David Fekke | 10/2/06 9:24 AM
Ben Nadel's Gravatar Rock on :D
# Posted By Ben Nadel | 10/2/06 9:25 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.6.001.