I\'m working with a DOMDocument, and I\'m wondering if there exists some way of using CSS-like selectors to select nodes like we would in jQuery.
Example situation: I\'m
If you want to manipulate the DOM ala Jquery, PHPQuery is something for you.
http://code.google.com/p/phpquery/
A simple example of what you can do with it.
// almost everything can be a chain $li = null; $doc['ul > li'] ->addClass('my-new-class') ->filter(':last') ->addClass('last-li');