My xml file is like below..
<CA>
<student>
<name>james</name>
<seat>A2</seat>
</student>
<student>
<name>Asada</name>
<seat>M13</seat>
</student>
</CA>
And I want to approach "seat" node's value "A2"and "M13" using PHP.
$root = $xml->documentElement;
$current = $root->firstChild;
$test = $current->firstChild;
I can access "name" node using above code. How can I access "seat" node?