File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Java API for xml generation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java API for xml generation" Watch "Java API for xml generation" New topic
Author

Java API for xml generation

Jagdev Singh
Ranch Hand

Joined: Jan 12, 2010
Posts: 71

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

Joined: Oct 08, 2010
Posts: 131

You can have a look at jaxb to achieve this.
Good Luck!!!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12678
    
    5
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

Java Resources at www.wbrogden.com
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
Jagdev Singh
Ranch Hand

Joined: Jan 12, 2010
Posts: 71

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
 
subject: Java API for xml generation
 
Similar Threads
help on xml wit java
How to add Attributes to a existing XML File.
XML/XSD to Database using Java
About server peerid in clustering
Comment Handling while parsing and building an xml file in xerces