File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Getting MEAN with Mongo, Express, Angular, and Node
this week in the
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
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