This module parses an XML document and creates its XML tree representation.
Procs
proc parseXml(s: Stream; filename: string; errors: var seq[string]): XmlNode {.
raises: [Exception, ValueError], tags: [ReadIOEffect, RootEffect].}- parses the XML from stream s and returns a PXmlNode. Every occurred parsing error is added to the errors sequence. Source Edit
proc parseXml(s: Stream): XmlNode {.
raises: [Exception, ValueError, XmlError], tags: [ReadIOEffect, RootEffect].}- parses the XTML from stream s and returns a PXmlNode. All parsing errors are turned into an EInvalidXML exception. Source Edit
proc loadXml(path: string; errors: var seq[string]): XmlNode {.
raises: [IOError, Exception, ValueError], tags: [ReadIOEffect, RootEffect].}- Loads and parses XML from file specified by path, and returns a PXmlNode. Every occurred parsing error is added to the errors sequence. Source Edit
proc loadXml(path: string): XmlNode {.
raises: [IOError, Exception, ValueError, XmlError], tags: [ReadIOEffect, RootEffect].}- Loads and parses XML from file specified by path, and returns a PXmlNode. All parsing errors are turned into an EInvalidXML exception. Source Edit