note 70868 modified in function.dom-domdocument-getelementbyid by didou
| From: | didou@php.net | Date: | Sat, 30 Dec 2006 03:13:21 +0000 |
| Subject: | note 70868 modified in function.dom-domdocument-getelementbyid by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-121047@lists.php.net to get a copy of this message | ||
If your XML document does not have a DTD that defines the "id" attribute as an ID, then
the easiest thing to do is to use XPath->query() to find an element that matches
"//[@id='x']"
--was--
In response to richard at 2006 dot atterer dot net, please don't do that. Just use
XPath->query() for that. If your XML document does not have a DTD that defines the
"id" attribute as an ID, then the easiest thing to do is to use XPath->query() to find
an element that matches "//[@id='x']"
http://php.net/manual/en/function.dom-domdocument-getelementbyid.php