summary refs log tree commit diff stats
path: root/lib/pure/xmlparser.nim
diff options
context:
space:
mode:
authordom96 <dominikpicheta@googlemail.com>2011-03-28 22:08:16 +0100
committerdom96 <dominikpicheta@googlemail.com>2011-03-28 22:08:16 +0100
commitd9232d126eae4169d2c2200a77f3521ceb47b50b (patch)
tree40595f798f34d370eb6fc76a0b45f724e62a22df /lib/pure/xmlparser.nim
parentdc669155e39007f1b584eef247dff90523f836bf (diff)
downloadNim-d9232d126eae4169d2c2200a77f3521ceb47b50b.tar.gz
Bug fixes for standard library: httpclient, json, os, parsexml, xmltree, xmlparser, gtk2.
Diffstat (limited to 'lib/pure/xmlparser.nim')
-rwxr-xr-xlib/pure/xmlparser.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/xmlparser.nim b/lib/pure/xmlparser.nim
index ad28bf618..8c5c5f5ab 100755
--- a/lib/pure/xmlparser.nim
+++ b/lib/pure/xmlparser.nim
@@ -68,11 +68,11 @@ proc parse(x: var TXmlParser, errors: var seq[string]): PXmlNode =
   of xmlElementOpen: 
     result = newElement(x.elementName)
     next(x)
-    result.attr = newStringTable()
+    result.attrs = newStringTable()
     while true: 
       case x.kind
       of xmlAttribute:
-        result.attr[x.attrKey] = x.attrValue
+        result.attrs[x.attrKey] = x.attrValue
         next(x)
       of xmlElementClose:
         next(x)