Here is something I wrote back in my .Net days: http://kiphughes.com/articles/technical-articles/extracting-element-attribute-values-in-xhtml/. Hope it helps a bit.
On Jul 16, 4:32 pm, ctx2002 <[email protected]> wrote: > Jochen was posted a question about use regex to extract information > from HTML page. > > as every one can see, the regex is not easy to read and understand. > > I was thinking why not use xslt to process HTML file? PHP 5 has good > support for xslt processor. > > only extra step we need is to use HTML tidy program to make HTML page > "xml well form". > > for me, xsl file is easier to understand then regex expression. > > are there other way/tools to extra information from HTML without use > regex? --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
