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/xmldomparser.nim
Executable file → Normal file
8
lib/pure/xmldomparser.nim
Executable file → Normal file
|
|
@ -17,14 +17,6 @@ type
|
|||
#Parsing errors
|
||||
EMismatchedTag* = object of E_Base ## Raised when a tag is not properly closed
|
||||
EParserError* = object of E_Base ## Raised when an unexpected XML Parser event occurs
|
||||
|
||||
template newException(exceptn, message: expr): expr =
|
||||
block: # open a new scope
|
||||
var
|
||||
e: ref exceptn
|
||||
new(e)
|
||||
e.msg = message
|
||||
e
|
||||
|
||||
proc parseText(x: var TXmlParser, doc: var PDocument): PText =
|
||||
result = doc.createTextNode(x.charData())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue