[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Big XML file


big xml file
At 09:48 AM 7/10/2003 -0400, Elliotte Rusty Harold wrote:
>There are limits. This won't help if you really do need to have the entire 
>document in memory at once, or if you need to move about randomly in the 
>tree. However, if you can work with a peephole view of the document 
>stream, then XOM gives you a larger peephole than SAX. It can show you 
>whole elements of your choice rather than individual tokens. I've found 
>this approach to be shockingly useful for many applications. In many cases 
>elements are the right granularity for processing a document. DOM's 
>document level view is too large. SAX's token level view is too small. 
>XOM's element level view is just right. :-)

Similarly, in Markup Object Events (MOE), you get the document reported as 
events.  If you want to build a tree, you just feed subsequent events to 
the root event for the tree, and the tools build the tree and notify you 
when it's ready.  The listen() method is at the heart of this, and it's 
pretty simple.

http://moe.sourceforge.net/docs/com/simonstl/moe/CoreComponentI.html#listen(com.simonstl.moe.CoreComponentI)

You can still build a huge memory-eating tree this way, but it offers a lot 
of flexibility.  I'm planning to return to MOE later this year, and I've 
been tinkering quietly on it for a while, so it's certainly not fit for 
production use at the moment.  Now that I finally have a parser that can 
feed it all the information it supports, it should be fun.






PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.