Monday, 2 September 2013

Best way to bind a XML File in Java (NetBeans)

Best way to bind a XML File in Java (NetBeans)

i want to bind this simple XML File in my java project:
&#65279;<?xml version="1.0" encoding="UTF-8"?>
<itg>
<reader>
<chapter id="1">
<subchapter id="1"></subchapter>
<subchapter id="2"></subchapter>
</chapter>
<chapter id="2">
<subchapter id="1"></subchapter>
<subchapter id="2"></subchapter>
</chapter>
<chapter id="3"></chapter>
</reader>
<questions>
</questions>
</itg>
I use NetBeans, and actually i bind the XML File by parsing the xml file
into a ArrayList, an bind the list. It works, but it is possible to bind
the xml File in a better way?
Thanks!

No comments:

Post a Comment