# Module xmlparser

This module parses an XML document and creates its XML tree representation.

# Imports

streams, parsexml, strtabs, xmltree, os

# Types

    EInvalidXml = object of EInvalidValue
      errors*: seq[string]        ## all detected parsing errors

  exception that is raised for invalid XML

# Procs

    proc parseXml(s: PStream; filename: string; errors: var seq[string]): PXmlNode {.
        raises: [E_Base, EInvalidValue], tags: [FReadIO, TEffect].}

  parses the XML from stream s and returns a `PXmlNode`. Every occured parsing error is added to the errors sequence.

    proc parseXml(s: PStream): PXmlNode {.raises: [E_Base, EInvalidValue,
        EInvalidXml], tags: [FReadIO, TEffect].}

  parses the XTML from stream s and returns a `PXmlNode`. All parsing errors are turned into an `EInvalidXML` exception.

    proc loadXml(path: string; errors: var seq[string]): PXmlNode {.
        raises: [EOutOfMemory, EIO, E_Base, EInvalidValue], tags: [FReadIO, TEffect].}

  Loads and parses XML from file specified by `path`, and returns a `PXmlNode`. Every occured parsing error is added to the errors sequence.

    proc loadXml(path: string): PXmlNode {.raises: [EOutOfMemory, EIO, E_Base,
        EInvalidValue, EInvalidXml], tags: [FReadIO, TEffect].}

  Loads and parses XML from file specified by `path`, and returns a `PXmlNode`. All parsing errors are turned into an `EInvalidXML` exception.

Generated: 2013-05-21 09:55:17 UTC