margrave/singlexml

Search:
Group by:
Source   Edit  

Parses a single XML node using Nim's parsexml. Works for JS in versions >= 1.3. -d:margraveNoInlineHtml to not use this module in the parser.

Procs

proc parseXml(text: string; i: int): (bool, int) {.
    ...raises: [IOError, OSError, Exception], tags: [ReadIOEffect, RootEffect],
    forbids: [].}
Parse text starting with index i as a single XML node and return a tuple with a boolean indicating success and an integer indicating the index where parsing XML failed, or ended (so not inclusive). Source   Edit