3 thoughts on “Parse HTML And Traverse DOM In PHP?

  1. Pingback: » Parse HTML And Traverse DOM In PHP?

  2. Surely a nice way to cope with not strictly valid HTML Code. But: how would you do the traversing? Tidy does not offer very comfortable functions for navigating inside an HTMLs DOM.

    An example: jQuery offers possibilities such as “find all elements of class xy and change their first child’s background colour to yellow”. How could anything like this be performed in PHP?

    Cheers, Rude

Comments are closed.