klyn.io.xml.dom.DOMParser.parseFromString
method
public parseFromString(xml as String) as DomDocument throws DOMException:
Description

Parses XML from a string.

Parameters
  • xml XML text.
Returns

Parsed XML document.

Throws
  • DOMException if the XML text is empty or not well formed.
Example
document = DOMParser().parseFromString("<root/>")