If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Initially, I simply want to loop through the file, extract the data, and display it in a table (it will get more complex later, but I need to take baby-steps).

What I want to do is loop through the object extracting each person, and within each person, extract the weapons. I have gotten the person part to work, but am missing some core concept for extracting the weapons. I see many examples on-line of how to grab specific elements and attributes, but my code needs to be dynamic. The xml file will change on a regular basis, and the extraction needs to somehow determine this. My code for parsing of the data is as follows:

I would also appreciate any constructive criticism. Like I said, I am new to this, so parts of this might be working, but not written the way they should be. If you have better names for the variables, that would also be good. I don't totally understand which pieces are objects and which are not.
Thanks in advance.