OpenWGA 7.9 - TMLScript reference

WGA » WGA.Xml
Method :

load([HttpClient ,] url)

On object WGA.Xml
Usage Loads an XML document from a URL and parses it as DOM document
Description The optional parameter "HttpClient" may be an object of type org.apache.commons.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.
Parameters HttpClient (Java object org.apache.http.client.HttpClient, optional):
The HTTP client object that should be used to load the page

url (String):
The URL under which the XML document is served
Return value DOM document object (Java object of class org.dom4j.Document)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
    portletevent