This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating an XML file programmatically from scratch

 
Gabriel Cane
Ranch Hand
Posts: 39
  • 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: 17278
6
IntelliJ IDE Mac Spring
  • 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