Re: DOMDocument getElementsByAttribute ??
| From: | Nathan Rixham | Date: | Mon, 09 Mar 2009 23:58:37 +0000 |
| Subject: | Re: DOMDocument getElementsByAttribute ?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-289725@lists.php.net to get a copy of this message | ||
Michael A. Peters wrote:
Seems like such a function does not exist in php. I can write my own function that does it using DOMElement->hasAttribute() - but I'm not sure how to get an array of every element in the DOM to test them for the attribute. Any hints? I'm sure it's simple, I'm just not seeing the function that does it.DOMXPath :)