Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java API for xml generation

 
Jagdev Singh
Ranch Hand
Posts: 71
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I need to generate the xml file from database(Strings).Which is the best open source API from performance ,scalability and usability point of view.In xml I need to put attributes,and Schema statements in generated file.

Thanks in Advance
 
rohit chavan
Ranch Hand
Posts: 132
Hibernate Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can have a look at jaxb to achieve this.
Good Luck!!!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally, I just write that kind of XML document with straight println and other plain old Java statements, it all depends with what you are comfortable with.

Bill
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There very rarely is a single "best" of anything. What's more, what "best" is would depend on your circumstances, about which we know nothing. I might choose XOM for this, unless it's a really simple format, in which case Bill's suggestion is a good one.
 
Jagdev Singh
Ranch Hand
Posts: 71
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to all for yours suggestions.
I will go for approach suggested by william.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic