|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: performance comparison
Title: RE: performance comparison Jimmy, I'll provide some quick, basic feedback on #3 below ("why is DOM memory hungry") and defer to others to comment on the rest. Unlike SAX, the DOM represents an entire XML document in memory in the form of a tree (called the "document tree"). SAX is an event-based API which does not need to build an internal tree. From the site sax.sourceforge.net: "Tree-based APIs are useful for a wide range of applications, but they normally put a great strain on system resources, especially if the document is large. Furthermore, many applications need to build their own strongly typed data structures rather than using a generic tree corresponding to an XML document. It is inefficient to build a tree of parse nodes, only to map it onto a new data structure and then discard the original." "In both of those cases, an event-based API provides a simpler, lower-level access to an XML document: you can parse documents much larger than your available system memory, and you can construct your own data structures using your callback event handlers." Hope that helps,
> **************************************************************************
-----Original Message-----
Hello, I am evaluting various XML technologies right now.
My questions are: 1. I have read numerous comparisons between SAX and
2. Most people mention SAX can handle files larger
3. DOM is memory-thirsty, according to most articles I
4. What do people think of pull type parsers and DOM
5. Is it possible for SAX to support XSLT? Thanks Jimmy -----------------------------------------------------------------
The list archives are at http://lists.xml.org/archives/xml-dev/ To subscribe or unsubscribe from this list use the subscription
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








