Re: [PHP] Re: DOMDocument getElementsByAttribute ??

2009-03-10 Thread Andrew Ballard
On Mon, Mar 9, 2009 at 8:24 PM, 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

Re: [PHP] Re: DOMDocument getElementsByAttribute ??

2009-03-10 Thread Andrew Ballard
On Mon, Mar 9, 2009 at 8:41 PM, Michael A. Peters 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 > DO

[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 t

[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: 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

[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 no