diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2004-08-14 21:46:31 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2004-08-14 21:46:31 +0000 |
commit | 1f8658a76f155c460604fd295e7e66828c054ade (patch) | |
tree | c1dcd9c4312935eae8a8af54ec2ad103070aa77e /python/libxml.py | |
parent | 7a2c2eedf4d185ec047ef9472f40a533507fee0c (diff) | |
download | libxml2-1f8658a76f155c460604fd295e7e66828c054ade.tar.gz |
Dodji pointed out a bug in xmlGetNodePath() applied patch from Albert Chin
* tree.c: Dodji pointed out a bug in xmlGetNodePath()
* xmlcatalog.c: applied patch from Albert Chin to add a
--no-super-update option to xmlcatalog see #145461
and another patch also from Albert Chin to not crash
on -sgml --del without args see #145462
* Makefile.am: applied another patch from Albert Chin to
fix a problem with diff on Solaris #145511
* xmlstring.c: fix xmlCheckUTF8() according to the suggestion
in bug #148115
* python/libxml.py: apply fix from Marc-Antoine Parent about
the errors in libxml(2).py on the node wrapper #135547
Daniel
Diffstat (limited to 'python/libxml.py')
-rw-r--r-- | python/libxml.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/libxml.py b/python/libxml.py index ddf0824f..1036bd90 100644 --- a/python/libxml.py +++ b/python/libxml.py @@ -488,19 +488,19 @@ class xmlCoreBreadthFirstItertor: # def nodeWrap(o): # TODO try to cast to the most appropriate node class - name = libxml2mod.name(o) + name = libxml2mod.type(o) if name == "element" or name == "text": return xmlNode(_obj=o) if name == "attribute": return xmlAttr(_obj=o) if name[0:8] == "document": return xmlDoc(_obj=o) - if name[0:8] == "namespace": + if name == "namespace": return xmlNs(_obj=o) if name == "elem_decl": return xmlElement(_obj=o) if name == "attribute_decl": - return xmlAtribute(_obj=o) + return xmlAttribute(_obj=o) if name == "entity_decl": return xmlEntity(_obj=o) if name == "dtd": |