Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to create a new XML using java

 
santosh akella
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i have some data and i want to write a new XML for that data. can this be done in java using any parsers.
if yes can nyone pls give me sample code of it.

thank u
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will probably find it easier just to write the XML document file directly with print statements than to fool around with creation of a Document object in memory.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic