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

Parameter | Description
--- | ---
`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"))