Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXP and Xerces or JAXB

 
Shane Lee
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just enquiring on reading in an xml file and mapping to java objects, which way is better, JAXP and Xerces or JAXB on a JEE5 application?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAXB is now part of Java 6 so it's easier to use than having to configure JEE.

I've just started using it, and while it's a bit cantankerous, it's a lot better (in my opinion) than having to roll your own.
 
Shane Lee
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for that. Do you have a sample build.xml file to use in an IDE, as i will not be doing the java bindings on the command line?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's the ant task I use to generate the representation classes:


Don't ask too many question about it... it took me a while to tinker it to do what I wanted, and I'm not sure I understand it all 100%.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic