src/smelly

Search:
Group by:
Source   Edit  

Types

XmlNode = ref object
  case kind*: XmlNodeKind
  of ElementNode:
    tag*: string
    attributes*: XmlAttributes
    children*: seq[XmlNode]
  of TextNode:
    content*: string
Source   Edit  
XmlNodeKind = enum
  ElementNode, TextNode
Source   Edit  

Procs

proc `$`(node: XmlNode): string {....raises: [], tags: [], forbids: [].}
This does NOT currently produce correctly encoded XML and is here mostly to enable debugging. Source   Edit  
proc parseXml(input: openArray[char]): XmlNode {....gcsafe,
    raises: [CatchableError], tags: [], forbids: [].}
Source   Edit