continued work on html/xmlparser
This commit is contained in:
parent
16c0beb27c
commit
40a5d6c3b9
747 changed files with 440 additions and 192 deletions
8
lib/pure/xmldom.nim
Executable file → Normal file
8
lib/pure/xmldom.nim
Executable file → Normal file
|
|
@ -34,14 +34,6 @@ type
|
|||
ESyntaxErr* = object of EDOMException ## If an invalid or illegal string is specified.
|
||||
EWrongDocumentErr* = object of EDOMException ## If a node is used in a different document than the one that created it (that doesn't support it)
|
||||
|
||||
template newException(exceptn, message: expr): expr =
|
||||
block: # open a new scope
|
||||
var
|
||||
e: ref exceptn
|
||||
new(e)
|
||||
e.msg = message
|
||||
e
|
||||
|
||||
const
|
||||
ElementNode* = 1
|
||||
AttributeNode* = 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue