Please note, new blog at http://www.acheron.org/darryl/

XML Parsers: DOM vs. SAX

I've been tinkering with Java lately, and I've been starting to playwith XML parsing. I'll have a post up soon on comparing DOM parsing with ColdFusion (I don't suspect too many!). I found this good article on devx, about the top-level differences between DOM and SAX specifications.
The W3C DOM specification provides a very rich and intuitive structure for housing the XML data, but can be quite resource-intensive given that the entire XML document is typically stored in memory. You can manipulate the DOM at run-time and stream the updated data as XML, or transform it to your own format if you require. The strength of the SAX specification is that it can scan and parse gigabytes worth of XML documents without hitting resource limits, because it does not try to create the DOM representation in memory. Instead, it raises events that you can handle as you see fit. Because of this design, the SAX implementation is generally faster and requires fewer resources. On the other hand, SAX code is frequently complex, and the lack of a document representation leaves you with the challenge of manipulating, serializing, and traversing the XML document. http://www.devx.com/xml/Article/16922/0/page/2

By Blogger dontcare, at 11/23/2009 11:24:00 am  

you might also want to look at vtd-xml, the latest and most advanced XML processing API available today

http://vtd-xml.sf.net



By Blogger longge, at 6/25/2010 01:54:00 pm  

Most lv bags
look just as good as the original. cheap louis vuitton bags
are popular favorites amongst many people today. This is because of the legend and respect that is associated with the lv bag
.



By Blogger 太子, at 7/03/2010 01:21:00 pm  

When you look at the quality of Coach Purses , you should especially check the inside of the handbags and inside of the pockets. Fake Coach Gallery manufacturers may not be able to get adequate stitching around the corners, especially inside of the handbags. This is a great way to identify a fake. In addition to this, you should look for the Coach Hamptons logo. Check out the Coach Madison to make sure you know what it looks like.


Christian Audigier, saw a great opportunity in Ed Hardy clothing work. He approach hardy shirts in 2004 with an idea for a clothing line based around his art and tattoo work. Hardy granted Audigier a license to use his work, and hardy shirts was born. hardy shirt quickly became a sensation across the world, but nobody took to the new range more than Hollywood's celebrity elite.



By Blogger weddingca, at 11/10/2011 06:19:00 pm  

Thanks for sharing this with all of us. Every girl has her most beautiful moment in the life just when you wear your own wedding dresses in your wedding.You can visit our wedding dress shop.Cheap wedding dresses have good quality. You can find ball gown wedding dresses,mother of the bride dresses,mermaid wedding dresses,flower girl dresses,strapless wedding dresses,a line wedding dresses,plus size wedding dresses,column wedding dresses,beach wedding dresses,empire wedding dresses,tea length wedding dresses,bridesmaid dresses,cocktail dresses,evening dresses,prom dresses your dream. Get your wedding dress in our bridal shop. Finally,I hope you have a happy wedding.



» Post a Comment

Trackbacks:

» Create a Link