This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes XML and Related Technologies and the fly likes Which parser does JAXB use? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Which parser does JAXB use?" Watch "Which parser does JAXB use?" New topic

Which parser does JAXB use?

Sukumar Gaade

Joined: Apr 23, 2009
Posts: 21
I read that JAXB uses Apache Xercers parser for parsing XML documents. I want to know which type (SAX/DOM/StaX) does JAXB use internally to parse the xml documents? or JAXB has its own technique of parsing other than SAX/DOM/StaX?

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12769
An SAX parser is the base technology for all of the standard library DOM and JAXB functions - I'm not sure what StaX uses.

If you are curious about the details why not download the standard Java library source code? It is very instructive to browse in.

For example I just searched for Stax in the Java 6 source and found lots of org.apache.xalan. and org.apache.xerces references.

jQuery in Action, 2nd edition
subject: Which parser does JAXB use?