This two-line example exhibits basic use of QueryPath. It creates a new HTML document and adds the typical 'Hello World' text to the body. It then writes that information to standard out (which is flushed to a web browser in most cases.)
The important methods covered here are qp(), which is the QueryPath factory function, QueryPath::find(), which is the primary searching function, and QueryPath::writeHTML(), which is a utility function.
This file is fully explained in the official QueryPath tutorial, located at https://fedorahosted.org/querypath/wiki/QueryPathTutorial
CLASS NAME | DESCRIPTION |