I have following xml:
<node id="1" type="1" /></node>
<node id="2" type="2" /></node>
u can use standard dom methods such as
The above will return a nodelist, you can access each node just as you would an array item, then you can get the attribute value for each attribute...