• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

help with xml parsing using dom4j

syn3rgyz

Gawd
Joined
Jun 14, 2005
Messages
763
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
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>
 
thanks for the link, i tried reading it but I don't understand the php syntaxes =[
 
Back
Top