klyn.io.xml.dom.DOMParser.parseFromFile
method

    public parseFromFile(filePath as FilePath) as DOMDocument throws IOException, DOMException:

Description

Parses XML from a FilePath.

Parameters

Parameter | Description
--- | ---
`filePath` | Local XML file path object.

Returns

Parsed XML document.

Throws

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

Example

    document = DOMParser().parseFromFile(FilePath("data.xml"))