Attributes and Problems
Brought to you by:
bs_php,
nigelswinson
From: James H. <ja...@oc...> - 2002-08-27 22:44:21
|
Greetings, I am having slight problems with retrieving attributes. For example: if I do something like $nodenames = $xpath->nodeName("$mypath/*") while ($nodename = arrayshift($nodenames)){ echo "This is my node".$nodename; echo "<br>This is it attributes".$xpath->getAttributes("$mypath/$nodename"); } Now this works if the nodes are unique in name, but if they have the same name, I get only the first attribute, but I do get every instance of the nodes, just the wrong attribute. Thanks for any suggestions in advance. --James |