continued work on html/xmlparser
This commit is contained in:
parent
16c0beb27c
commit
40a5d6c3b9
747 changed files with 440 additions and 192 deletions
2
lib/pure/xmltree.nim
Executable file → Normal file
2
lib/pure/xmltree.nim
Executable file → Normal 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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue