This question was LOCKED with a PROPOSED ANSWER and awaits your decision today.
If the Proposed Answer helped you, please accept it and award that expert. If it did not
help you, please reject it and add comments as to status and what else is needed.
If you wish to award multiple experts, just comment here with detail.
Your response in finalizing this old question is appreciated.
Moondancer
Community Support Moderator @ Experts Exchange
Main Topics
Browse All Topics





by: nandini_kumarPosted on 2000-11-26 at 04:47:03ID: 5573759
Dear Jenny891
Hi
In fact there are two standard API in java for xml parsing one is the SAX and other is DOM.
while JAXP is the API that is developed by Sun, by integrating these two above mentioned APIs with the addidtion of
com.sun.java.xml.parser package which give some good implementation of the interfaces and abstract classes of DOM and SAX.
Infact JAXP was developed for some project X (Sun's implementstion).
As far as your question about Validating and non Validating is concerned, either we use SAX or DOM we use the same parser which is the SAX's paser.
while DOM gave us facility of tree structure which we can obtain from an XML document after parsing it with SAX parser.
By default the instance of parser which we obtain by calling SAXParserFactory method newInstance() is non validating but u can make it validating by SAXParserFactor's method
setValidating(true).
If this not gona help u can consult three very good and effective tutorials at sun.java.com's XML link.
I think it can work u can consult me agian.
Waqar Ahmad