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

Java-XML and Xml-java

 
bhaskar nagaraja
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all ,
I am very new to java .My requirement is i have to write some data from java to xml file and vice versa i.e i have to read from xml file to java .Since i am very new , i am totally confused how to go about.So if any one could put some light on this matter, it will be of great help
Thanks in advace,
bhaskar

 
netharam ram
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, the best way is to use parsers like SAX and DOM.it will help to parse the xml document to write it in file using java.
 
Ronyn Woods
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use JDOM, it's easy to use.
Get more information, you could visit the site www.jdom.org
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic