• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Starting with Java and Xml

 
Colm Dickson
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,


I want to use xml rather than a database for a project I'm working on. I will be saving any data to xml files and I know that I can use standard IO utilities to write to a file but when it comes to checking if the xml is valid and proper then what API should I be using. I'd like to know what API allows me to read and write valid xml..whatever on is the handiest for an xml beginner please..

Thanks,


Colm
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The standard Java library is all you need to create/remove/update/delete information in an XML document.

Search for "Processing XML with Java by Harold" to get a free online book which is VERY complete.

If you use the library methods to create and save an XML document it will automatically be correctly formed.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic