note 46230 added to ref.dom
| From: | j dot e dot r at gmx dot net | Date: | Sun, 03 Oct 2004 19:40:17 +0000 |
| Subject: | note 46230 added to ref.dom | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-77861@lists.php.net to get a copy of this message | ||
// Get all attributes of an element as NodeList:
$attributeNodeList = $xpath->query( "//path/to/element/@*" );
for( $k=0; $k<$attributeNodeList->length; $k++ ){
$attribute = $attributeNodeList->item($k);
echo 'Attribute : ' . $attribute ->nodeName .' = '. $attribute
->firstChild->nodeValue ." <br> \n";
}
----
Manual Page -- http://www.php.net/manual/en/ref.dom.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46230
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46230&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46230&report=yes
Search -- http://master.php.net/manage/user-notes.php