This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes JAXB - efault parser? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JAXB - efault parser?" Watch "JAXB - efault parser?" New topic
Author

JAXB - efault parser?

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1371
JAXB uses which parser for Marshalling and UnMarshalling?
Karthik Shiraly
Ranch Hand

Joined: Apr 04, 2009
Posts: 489
    
    5
Hi,

JAXB is a standard.
Which parser is used depends on the implementation of the standard. Sun JRE uses Apache Xerces; other JREs may use something else.
Blaise Doughan
Greenhorn

Joined: Aug 25, 2010
Posts: 8
The MOXy JAXB implementation (http://www.eclipse.org/eclipselink/moxy.php) uses what ever JAXP parsers are configured for your VM. I believe the Metro JAXB implementation (https://jaxb.dev.java.net/) also works this way.
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187

...Sun JRE uses Apache Xerces; other JREs may use something else.


Actually this statement is not accurate. In the Java 1.4 release, Sun included a "Sun" version of the Xerces XML parser in the standard Java Reference Implementation. They did not include the Apache Xerces application. Results of industry studies have demonstrated that the Apache
version exceeds the standard Java package version in speed and performance.

 
 
subject: JAXB - efault parser?
 
Similar Threads
How to access a context.xml parameter?
JAXB Parser
Which parser does JAXB use?
XML Parsing using SAX, DOM and JAXP
JAXB for android