I'm given an XML document at work that is a schema from a database. I'm trying to parse the xml data into PERSON objects, and then store each object into an arraylist or something so that it can be fed back into a different database later. I'm not a very strong programmer and haven't written in java since college so I'm not sure if that's the best way to do it. I'm also not quite sure about how to parse the XML document, should I do it iteratively or using nodelist or something?
The xml document looks something like this
The xml document looks something like this
Code:
<ROWSET>
<ROW>
<ID>01</ID>
<FIRSTNAME>Bob</FIRSTNAME>
<LASTNAME>Smith</LASTNAME>
</ROW>
<ROW>
<ID>02</ID>
<FIRSTNAME>Mary</FIRSTNAME>
<LASTNAME>Atkins</LASTNAME>
</ROW>
</ROWSET>