note 68834 deleted from ref.dom by didou
| From: | didou@php.net | Date: | Sat, 30 Dec 2006 03:01:17 +0000 |
| Subject: | note 68834 deleted from ref.dom by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-121035@lists.php.net to get a copy of this message | ||
Note Submitter: bernat dot wiandt at gmail dot com
----
Reply-to: com dot yahoo at adjwilli
it's easier to use xpath instead your function. this should solve your problem:
"//*[@attr_name]" where attr_name is the attribute name
it will return all nodes that have the attribute "attr_name"
you can evaluate xpath with DOMXPath->query() or DOMXPath->evaluate()
you can learn more about xpath at http://www.w3schools.com/xpath/xpath_intro.asp