This file contains an example of how QueryPath can be used to parse a PHP file. Any well-formed XML or HTML document can be parsed. Since PHP tags are contained inside of processor instructions, an XML parser can correctly parse such a file into a DOM. Consequently, you can use QueryPath to read, modify, and traverse PHP files.
This example illustrates how such a file can be parsed and manipulated.
CLASS NAME | DESCRIPTION |