klyn.io.xml.dom.DOMParser.parse
method

    public parse(source as InputSource) as DomDocument throws IOException, DOMException:

Description

Parses XML from a SAX input source.

Parameters

- source SAX input source.

Returns

Parsed XML document.

Throws

- IOException if the source cannot be read.
- DOMException if the XML source is not well formed.

Example

    document = DOMParser().parse(InputSource("data.xml"))