Comment to the DOMNamedNodeMap ->getNamedItem() page in the php.net manual
Basic example of use :
< ? xml version="1.0" encoding="UTF-8" ? >
< racine version="2.0a" >
< article/ >
< /racine >
< ? php
(...)
echo $doc->documentElement->attributes->getNamedItem("version")->nodeValue;
// returns "2.0a"
? >
Comment added on 2006-03-03