• 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 Features?

 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm a newbie on JAXB. Down below is the definition of JAXB given by Sun.
Questions is, using JDOM with Crimson, can't we achieve the same functionality?
What are the significant features that JAXB has?

_______________________
(JAXB)XML-to-Java Object Binding Facility
With the JAXB facility, the developer can create two-way mapping between XML documents
and Java objects. Given an XML schema, the JAXB compiler generates a set of Java class
files that contain all of the code to parse XML documents based on the schema. A
developer using the generated classes can build a Java object tree representing an XML
document, manipulate the content of the tree, and regenerate XML documents from the
tree.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Isn't JDOM just another way of representing a DOM in memory with generalized classes?
JAXB actually creates Java code specific for representing a given XML DTD. This specific code is supported by the JAXB library of functions so a JAXB object can write itself out as a document or read itself in. You can modify the class to perform various checks, etc. and build it into your application.
Another project for doing this is called CASTOR at
http://castor.exolab.org/
Bill
 
Jes Sie
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by William Brogden:
Isn't JDOM just another way of representing a DOM in memory with generalized classes?
JAXB actually creates Java code specific for representing a given XML DTD. This specific code is supported by the JAXB library of functions so a JAXB object can write itself out as a document or read itself in. You can modify the class to perform various checks, etc. and build it into your application.
Another project for doing this is called CASTOR at
http://castor.exolab.org/
Bill


Ahh, now you've got my attention. I did a site visit on http://castor.exolab.org/xml-mapping.html I'm looking at some "framework" which does this reading from an XML to a Java Object elegantly.
Assumimng you're the right person, What kind of underlying XML tech is being used on Castor? DOM or SAX? Do they use the Xerces or some other parser? etc.
reply
    Bookmark Topic Watch Topic
  • New Topic