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 JAXB - efault parser? 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 "JAXB - efault parser?" Watch "JAXB - efault parser?" New topic

JAXB - efault parser?

kri shan
Ranch Hand

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

Joined: Apr 04, 2009
Posts: 874


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

Joined: Aug 25, 2010
Posts: 8
The MOXy JAXB implementation ( uses what ever JAXP parsers are configured for your VM. I believe the Metro JAXB implementation ( 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.

I agree. Here's the link:
subject: JAXB - efault parser?
It's not a secret anymore!