summary refs log tree commit diff stats
path: root/lib/pure/xmltree.nim
diff options
context:
space:
mode:
authorrumpf_a@web.de <>2010-02-14 00:29:35 +0100
committerrumpf_a@web.de <>2010-02-14 00:29:35 +0100
commit40a5d6c3b9a0fa3b5a7444a00073729fec17dfd8 (patch)
treec993cf13f370a52a061f48776695a70825137f7c /lib/pure/xmltree.nim
parent16c0beb27c372ce431b54bab9750bbaab254acfb (diff)
downloadNim-40a5d6c3b9a0fa3b5a7444a00073729fec17dfd8.tar.gz
continued work on html/xmlparser
Diffstat (limited to 'lib/pure/xmltree.nim')
-rw-r--r--[-rwxr-xr-x]lib/pure/xmltree.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/xmltree.nim b/lib/pure/xmltree.nim
index 005969fc4..2b0977874 100755..100644
--- a/lib/pure/xmltree.nim
+++ b/lib/pure/xmltree.nim
@@ -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,