PHP : load xml file and get node value

Dragonsys

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