• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java objects into XML file and vice-versa.

 
Grigory Ptashko
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.
I'm new to XML and really do not know where to begin from.
My application must have a feature of converting simple java objects to XLM and back.
For example I have an ArrayList of Strings and I want to save them in XML. And later on I want to use them again.
What tools should I use for this ?
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
 
Andy Bowes
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Providing you can define a XML Schema for the XML that you will be generating, JAXB would certainly be the most appropriate candidate for the job.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Electric XML is another neat product in this space - Java to XML and back.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic