This module parses a XML Document into a XML DOM Document representation.
EMismatchedTag = object of ValueError
EParserError = object of ValueError
proc loadXMLStream(stream: Stream): PDocument {...}{.raises: [Exception,
EInvalidCharacterErr, EHierarchyRequestErr, EWrongDocumentErr,
ENoModificationAllowedErr, ENamespaceErr, EMismatchedTag, EInuseAttributeErr,
EParserError], tags: [ReadIOEffect].}stream, and returns a PDocument proc loadXML(xml: string): PDocument {...}{.raises: [Exception, EInvalidCharacterErr,
EHierarchyRequestErr, EWrongDocumentErr, ENoModificationAllowedErr,
ENamespaceErr, EMismatchedTag, EInuseAttributeErr, EParserError],
tags: [ReadIOEffect].}xml, and returns a PDocument proc loadXMLFile(path: string): PDocument {...}{.raises: [IOError, Exception,
EInvalidCharacterErr, EHierarchyRequestErr, EWrongDocumentErr,
ENoModificationAllowedErr, ENamespaceErr, EMismatchedTag, EInuseAttributeErr,
EParserError], tags: [ReadIOEffect].}path, and returns a PDocument
© 2006–2018 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/xmldomparser.html