klyn.io.xml.dom.DOMParser.parseFromFile
method
public parseFromFile(filePath as FilePath) as DomDocument throws IOException, DOMException:
Description

Parses XML from a FilePath.

Parameters
  • 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"))