[uf-discuss] Re: Parsing XFN in PHP

Toby A Inkster mail at tobyinkster.co.uk
Fri Apr 11 00:33:59 PDT 2008


Ryan Parman wrote:

> On Apr 10, 2008, at 10:34 AM, Toby A Inkster wrote:
>> http://www.php.net/manual/en/function.dom-domdocument-loadhtml.php
> 
> This is interesting -- especially if it works. However the version
> information is noted as CVS-only. Is this in a shipping version of PHP
> yet?

I've never quite understood how they get that versioning information in 
the documentation. It often seems wrong. DOMDocument has been part of the 
PHP core since 5.0.

Another option is XML_HTMLSax3 from PEAR:
http://pear.php.net/package/XML_HTMLSax3

Here's an example use of the above PEAR module: it converts an HTML table 
into a two-dimensional array, respecting rowspan and colspan (oh yes!):
http://tobyinkster.co.uk/blog/2007/07/20/html-table-parsing/

-- 
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 15 days, 18:33.]

                   Tagliatelle with Fennel and Asparagus
   http://tobyinkster.co.uk/blog/2008/04/06/tagliatelle-fennel-asparagus/



More information about the microformats-discuss mailing list