note 68834 added to ref.dom
| From: | bernatdotwiandtatgmaildotcom at osu1 dot php dot net | Date: | Sat, 12 Aug 2006 15:33:50 +0000 |
| Subject: | note 68834 added to ref.dom | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115829@lists.php.net to get a copy of this message | ||
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
----
Server IP: 66.163.161.117
Probable Submitter: 84.0.119.60
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/ref.dom.php
Edit -- https://master.php.net/note/edit/68834
Del: integrated -- https://master.php.net/note/delete/68834/integrated
Del: useless -- https://master.php.net/note/delete/68834/useless
Del: bad code -- https://master.php.net/note/delete/68834/bad+code
Del: spam -- https://master.php.net/note/delete/68834/spam
Del: non-english -- https://master.php.net/note/delete/68834/non-english
Del: in docs -- https://master.php.net/note/delete/68834/in+docs
Del: other reasons-- https://master.php.net/note/delete/68834
Reject -- https://master.php.net/note/reject/68834
Search -- https://master.php.net/manage/user-notes.php