File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating an XML file programmatically from scratch

 
Gabriel Cane
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the best way to programmatically create an XML file from scratch, using data from a database and config files?
What classes should I use? How should I approach the problem?
We haven't set a firm DTD/XSD schema yet, so I won't be able to use either dtd's or xsd's to validate the structure.
Thanks.
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the reply I got, and use his code. After you see the XML it creates, then you can modify it to make it more custom for your app. But it is a great starting point.
http://www.coderanch.com/t/124928/XML/Getting-XML-ResultSet
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic