aspose file tools
The moose likes XML and Related Technologies and the fly likes need help urgently Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "need help urgently" Watch "need help urgently" New topic

need help urgently

Rishi Yagnik
Ranch Hand

Joined: Jan 04, 2001
Posts: 84
hi friends
if my XMLDocument is containing a DOM Structure can i parsed that document with SAXParser?
Junilu Lacar

Joined: Feb 26, 2001
Posts: 5476

Aren't DOM and SAX just different ways of handling an XML document? You can use one or the other depending on how you want to use the XML data but the data structure is pretty much independent of the method of reading it.
I think the short answer would be "Yes." However, there are certain situations where one is more appropriate than the other. DOM is memory intensive but highly flexible. SAX sacrifices some of the flexibility in favor of efficiency.
I'm no expert in XML though, so please correct me if I'm wrong.

Junilu - [How to Ask Questions] [How to Answer Questions]
I agree. Here's the link:
subject: need help urgently