• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What are some alternatives to JAXB?

 
Chun Chu
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are some alternatives to JAXB? I would like to create JAVA bindings to aid creating and reading XML files.

I know that you can use JAXB to accomplish that but I would like to know if there are any alternatives out there.

Thanks
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XOM, JDOM, dom4j, etc. etc.
 
Jelle Klap
Bartender
Posts: 1951
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Projects like Castor and Apache XMLBeans predate JAXB, so you could have a look at those.
 
Chun Chu
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:XOM, JDOM, dom4j, etc. etc.


I thought those are consider XML parsers. I am looking for something similar to JAXB where you run your XML schema against the JAXB tool to generate JAVA classes that aid reading and writing XML files.
 
Chun Chu
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jelle Klap wrote:Projects like Castor and Apache XMLBeans predate JAXB, so you could have a look at those.


Yup! Mr. Google leads me to XMLBeans as well. I never heard of Castor. I will take a look.

Please let me know if there's any more alternatives.

Thanks
 
Paul Clapham
Sheriff
Pie
Posts: 20729
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My google keywords java xml binding produced a link to JIBX on the first page.
 
Chun Chu
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:My google keywords java xml binding produced a link to JIBX on the first page.


Somehow that's not on my search result when I use Google. :-/

Thanks!
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chun Chu wrote:
Ulf Dittmer wrote:XOM, JDOM, dom4j, etc. etc.


I thought those are consider XML parsers. I am looking for something similar to JAXB where you run your XML schema against the JAXB tool to generate JAVA classes that aid reading and writing XML files.


They're not parsers, they're XML APIs that can be used to read and write XML. You're correct that they don't create Java classes from an XML schema, but then, you didn't initially state that that's what you wanted.
 
Chun Chu
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:
Chun Chu wrote:
Ulf Dittmer wrote:XOM, JDOM, dom4j, etc. etc.


I thought those are consider XML parsers. I am looking for something similar to JAXB where you run your XML schema against the JAXB tool to generate JAVA classes that aid reading and writing XML files.


They're not parsers, they're XML APIs that can be used to read and write XML. You're correct that they don't create Java classes from an XML schema, but then, you didn't initially state that that's what you wanted.


Sorry for not being clear. Thanks for clarification.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic