This module parses an XML document and creates its XML tree representation.
proc loadXml(path: string; errors: var seq[string];
options: set[XmlParseOption] = {reportComments}): XmlNode {.
...raises: [IOError, OSError, ValueError, Exception],
tags: [ReadIOEffect, RootEffect, WriteIOEffect], forbids: [].}path, and returns a XmlNode. Every occurred parsing error is added to the errors sequence. Source Edit proc loadXml(path: string; options: set[XmlParseOption] = {reportComments}): XmlNode {.
...raises: [IOError, OSError, ValueError, Exception, XmlError],
tags: [ReadIOEffect, RootEffect, WriteIOEffect], forbids: [].}path, and returns a XmlNode. All parsing errors are turned into an XmlError exception. Source Edit proc parseXml(s: Stream; filename: string; errors: var seq[string];
options: set[XmlParseOption] = {reportComments}): XmlNode {.
...raises: [IOError, OSError, ValueError, Exception],
tags: [ReadIOEffect, RootEffect, WriteIOEffect], forbids: [].}s and returns a XmlNode. Every occurred parsing error is added to the errors sequence. Source Edit proc parseXml(s: Stream; options: set[XmlParseOption] = {reportComments}): XmlNode {.
...raises: [IOError, OSError, ValueError, Exception, XmlError],
tags: [ReadIOEffect, RootEffect, WriteIOEffect], forbids: [].}s and returns a XmlNode. All parsing errors are turned into an XmlError exception. Source Edit proc parseXml(str: string; options: set[XmlParseOption] = {reportComments}): XmlNode {.
...raises: [IOError, OSError, ValueError, Exception, XmlError],
tags: [ReadIOEffect, RootEffect, WriteIOEffect], forbids: [].}str and returns a XmlNode. All parsing errors are turned into an XmlError exception. Source Edit
© 2006–2024 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/xmlparser.html