This module parses a XML Document into a XML DOM Document representation.
Procs
proc loadXMLStream(stream: Stream): PDocument {.raises: [Exception, EInvalidCharacterErr, EHierarchyRequestErr, EWrongDocumentErr, ENoModificationAllowedErr, ENamespaceErr, EMismatchedTag, EInuseAttributeErr, EParserError], tags: [ReadIOEffect].}
- Loads and parses XML from a stream specified by stream, and returns a PDocument Source
proc loadXML(xml: string): PDocument {.raises: [Exception, EInvalidCharacterErr, EHierarchyRequestErr, EWrongDocumentErr, ENoModificationAllowedErr, ENamespaceErr, EMismatchedTag, EInuseAttributeErr, EParserError], tags: [ReadIOEffect].}
- Loads and parses XML from a string specified by xml, and returns a PDocument Source
proc loadXMLFile(path: string): PDocument {.raises: [IOError, Exception, EInvalidCharacterErr, EHierarchyRequestErr, EWrongDocumentErr, ENoModificationAllowedErr, ENamespaceErr, EMismatchedTag, EInuseAttributeErr, EParserError], tags: [ReadIOEffect].}
- Loads and parses XML from a file specified by path, and returns a PDocument Source