Re: Parsing HTML href-Attribute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 16, 2009 at 1:59 PM, mike <mike503@xxxxxxxxx> wrote:
> On Fri, Jan 16, 2009 at 10:58 AM, mike <mike503@xxxxxxxxx> wrote:
>
>> only if it's parseable xml :)
>>
>
> Or not! Ignore me. Supposedly this can handle HTML too. I'll have to
> try it next time. Normally I wind up having to use tidy to scrub a
> document and try to get it into xhtml and then use simplexml. I wonder
> how well this would work with [crappy] HTML input.
>

Great if you use @.  ;)  I'd try to make sure all of my input was
stored as proper x/html in the db before I really tried parsing it, so
I'm not sure of his setup, but I use getElementsByTagName all the time
and love it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux