News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
PHP in Action:
Get links with XPath
October 07, 2008 @ 08:43:33

In response to this tutorial over on the PHPro.org website a new post has been made to the PHP in Action blog with an "even cooler" way to do the same sort of DOM fetching - XPath.

I'm a little bit surprised at the claim [the tutorial makes] that it's the "correct" (only) way, since there's at least one more that I find even cooler: XPath. Admittedly, it's slower, yet it's a more powerful language.

A quick example is included, building up from a simple search for anchor tags up to a custom query looking for just the anchor tags with a class of "bookmark".

0 comments voice your opinion now!
xpath tutorial dom link find search anchor attribute



Similar Posts

DevArticles: Creating the Front End of a Search Engine with AJAX

Hasin Hayder's Blog: Building services like FriendFeed using PHP - Part2

DevShed: Handling Attachments in MIME Email with PHP

PHP-Coding-Practices.com: Introduction To Security Vulnerabilities In PHP

Dave Dash's Blog: Saving a file to a database using symfony and doctrine


Community Events







Don't see your event here?
Let us know!


PEAR ajax framework book code conference example mysql security zendframework PHP5 zend release releases developer package application job cakephp database

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework