Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXB - efault parser?

 
kri shan
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAXB uses which parser for Marshalling and UnMarshalling?
 
Karthik Shiraly
Bartender
Posts: 1208
25
Android C++ Java Linux PHP Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

...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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic