• 0

Using Java to take in a XML file


Question

2 answers to this question

Recommended Posts

  • 0

For serializing objects, you might want to take a look at XStream: http://xstream.codehaus.org/

If external libraries aren't an option, you can use the built-in java classes for XML parsing:

http://www.mkyong.co...ava-dom-parser/

http://www.mkyong.com/java/how-to-read-xml-file-in-java-sax-parser/

You'll have to do any type conversions for numbers and such for the values inside the XML nodes this way though.

Link to comment
Share on other sites

This topic is now closed to further replies.