Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 Badass: Making Users Awesome this week in the Game Development 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: 5739

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