Module xmldomparser

This module parses a XML Document into a XML DOM Document representation.

Types

EMismatchedTag = object of EInvalidValue
Raised when a tag is not properly closed
EParserError = object of EInvalidValue
Raised when an unexpected XML Parser event occurs

Procs

proc loadXMLStream(stream: PStream): PDocument {.raises: [E_Base, 
    EInvalidCharacterErr, EHierarchyRequestErr, EWrongDocumentErr, 
    ENoModificationAllowedErr, ENamespaceErr, EMismatchedTag, 
    EInuseAttributeErr, EParserError, EParserError], tags: [FReadIO].}
Loads and parses XML from a stream specified by stream, and returns a PDocument
proc loadXML(xml: string): PDocument {.raises: [E_Base, EInvalidCharacterErr, 
    EHierarchyRequestErr, EWrongDocumentErr, ENoModificationAllowedErr, 
    ENamespaceErr, EMismatchedTag, EInuseAttributeErr, EParserError], 
                                       tags: [FReadIO].}
Loads and parses XML from a string specified by xml, and returns a PDocument
proc loadXMLFile(path: string): PDocument {.raises: [EOutOfMemory, EIO, E_Base, 
    EInvalidCharacterErr, EHierarchyRequestErr, EWrongDocumentErr, 
    ENoModificationAllowedErr, ENamespaceErr, EMismatchedTag, 
    EInuseAttributeErr, EParserError], tags: [FReadIO].}
Loads and parses XML from a file specified by path, and returns a PDocument
Generated: 2014-03-11 21:26:46 UTC