• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAXB - efault parser?

 
Ranch Hand
Posts: 1491
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JAXB uses which parser for Marshalling and UnMarshalling?
 
Bartender
Posts: 1210
25
Android Python PHP C++ Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic