Re: [PHP] Re: Using DOM textContent Property

2008-09-03 Thread Lupus Michaelis
[EMAIL PROTECTED] a écrit : That example was for finding email addresses and turning them into links, not the other thing about adding missing attributes. XPATH would be no help with the former. You're right, I misunderstood :-/ sorry for the noise. -- Mickaël Wolff aka Lupus Michaelis htt

Re: [PHP] Re: Using DOM textContent Property

2008-09-03 Thread php
Lupus Michaelis wrote: Tim Gustafson a écrit : $Elements = $HTML->getElementsByTagName("*"); for ($X = 0; $X < $Elements->length; $X++) { ... SNIP ... } Why don't use the XPath ? This q

[PHP] Re: Using DOM textContent Property

2008-09-02 Thread Lupus Michaelis
Tim Gustafson a écrit : $Elements = $HTML->getElementsByTagName("*"); for ($X = 0; $X < $Elements->length; $X++) { ... SNIP ... } Why don't use the XPath ? This query fetch all a element