OpenWGA 7.11 - TMLScript reference




Subobject "Html" collects functionalties to load and parse HTML documents.

Methods this subobject use the HTML parser library NekoHTML to parse HTML text. However DOM documents of the XML parser library Dom4J are used to represent parsed HTML structures.

Note: NekoHTML transforms all HTML tags to their uppercase names, which is important when you want to select individual tags via XPath.

Retrieval As global object "WGA.Html"
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Properties and methods
Name Purpose
load([HttpClient ,] url) Loads a HTML page from a URL and parses it as DOM document
parse(htmlText) Parses HTML text and returns it as DOM document object