Re: [PHP] Re: DOMDocument getElementsByAttribute ??

2009-03-10 Thread Andrew Ballard
On Mon, Mar 9, 2009 at 8:41 PM, Michael A. Peters mpet...@mac.com wrote: Nathan Rixham wrote: Michael A. Peters wrote: Nathan Rixham wrote: 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()

Re: [PHP] Re: DOMDocument getElementsByAttribute ??

2009-03-10 Thread Andrew Ballard
On Mon, Mar 9, 2009 at 8:24 PM, Nathan Rixham nrix...@gmail.com wrote: Michael A. Peters wrote: Nathan Rixham wrote: 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

[PHP] Re: DOMDocument getElementsByAttribute ??

2009-03-09 Thread Nathan Rixham
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

[PHP] Re: DOMDocument getElementsByAttribute ??

2009-03-09 Thread Michael A. Peters
Nathan Rixham wrote: 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

[PHP] Re: DOMDocument getElementsByAttribute ??

2009-03-09 Thread Nathan Rixham
Michael A. Peters wrote: Nathan Rixham wrote: 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.

[PHP] Re: DOMDocument getElementsByAttribute ??

2009-03-09 Thread Michael A. Peters
Nathan Rixham wrote: Michael A. Peters wrote: Nathan Rixham wrote: 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