OpenWGA 7.7 - TMLScript reference
WGA » WGA.HtmlMethod :
load([HttpClient ,] url)
On object | WGA.Html |
Usage |
Loads a HTML page from a URL and parses it as DOM document |
Description |
The object constructed is the DOM document object of XML parser "Dom4J", of type org.dom4j.Document. The optional parameter "HttpClient" may be an object of type org.apache.http.client.HttpClient of the Commons HttpClient API. It is used to load the resource on the URL, and has methods to specify various settings regarding this operation. If no client object is passed a default one is used. For backward compatibility there still is a method "loadHTML()" available on TMLContext whose use is discouraged since OpenWGA 5.3. |
Parameters |
HttpClient (org.apache.http.client.HttpClient, optional): The HTTP client object that should be used to load the page url (String): The URL of the HTML page |
Return value |
DOM document object (Java object of class org.dom4j.Document) |
Allowed in script types |
|