A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
XML and Related Technologies
SAX or DOM to read XML
Joined: Aug 27, 2002
Nov 09, 2003 13:43:00
I need to read a xml
and create an object to
represent the xml. Which one of sax and dom is better?
Author and all-around good cowpoke
Joined: Mar 22, 2000
Nov 09, 2003 14:28:00
If you want an object in memory that represents an XML document, you have to use DOM or a related technology. SAX parsers simply scan once through a document and it is up to the programmer to hang on to the data needed.
Joined: Jan 23, 2002
Nov 09, 2003 15:12:00
's a simple method for parsing a string into a DOM object. It's up to you from that point forward to create your specific object based on that DOM tree.
Effective Unit Testing
Have you checked out
subject: SAX or DOM to read XML
DOM vs SAX
how to compare two xml files?
So how do I start parsing XML with URLConnection?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015