File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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: 6529

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]
subject: need help urgently
It's not a secret anymore!