aspose file tools*
The moose likes XML and Related Technologies and the fly likes Starting with Java and Xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Starting with Java and Xml" Watch "Starting with Java and Xml" New topic
Author

Starting with Java and Xml

Colm Dickson
Ranch Hand

Joined: Apr 04, 2009
Posts: 87
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

Joined: Mar 22, 2000
Posts: 12676
    
    5
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

Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Starting with Java and Xml
 
Similar Threads
To author
Writing XML using JAVA
validating a physical machine to use the application!
XML "object mapping"
Justifying text