continued work on html/xmlparser

This commit is contained in:
rumpf_a@web.de 2010-02-14 00:29:35 +01:00
commit 40a5d6c3b9
747 changed files with 440 additions and 192 deletions

2
lib/pure/xmltree.nim Executable file → Normal file
View file

@ -63,7 +63,7 @@ proc newCData*(cdata: string): PXmlNode =
proc newEntity*(entity: string): PXmlNode =
## creates a new ``PXmlNode`` of kind ``xnEntity`` with the text `entity`.
result = newXmlNode(xnCData)
result.fText = cdata
result.fText = entity
proc text*(n: PXmlNode): string {.inline.} =
## gets the associated text with the node `n`. `n` can be a CDATA, Text,