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

Parses XML from a file path.

Parameters
  • filePath Local XML file path.
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("data.xml")