OpenWGA 7.7 - TMLScript reference

WGA » WGA.File()
Method :

asXMLDocument([encoding])

On object WGA.File()
Usage Returns the content of the referenced file as DOM4J XML document.
Parameters

encoding (String, optional)

The encoding to be used. Default is the configured OpenWGA output encoding (normally UTF-8).

Return value

The file content as Dom4j XMLDocument.

Examples
var xml = WGA.File("some-file.xml").asXMLDocument()