GNOME Bugzilla – Bug 147993
python xmlReader remains in previous attribute
Last modified: 2009-08-15 18:40:50 UTC
Description: In libxml2-2.6.11, XmlReader (after reading an attribute) does not appear to move off the attribute and on to the next element after Read() is done. Steps to reproduce: 1. Run the attached python file Expected output: node name: doc node name: #text node name: element1 attribute: a1="1" attribute: a2="2" attribute: a3="3" node name: #text node name: element2 node name: #text node name: element2 node name: doc Actual output: node name: doc node name: #text node name: element1 attribute: a1="1" attribute: a2="2" attribute: a3="3" node name: a3 node name: a3 node name: a3 node name: a3 node name: a3 (I can't find / select 2.6.11 from the version listbox so I'm filing this against "CVS (head)")
Created attachment 29692 [details] Python test case to print node names and attributes
As noted with further discussion on the mailing list, I've made a small change to xmlreader.c which should fix the problem. Thanks for the report and the clear test case. Bill
This should be fixed in release libxml2-2.6.12. thanks, Daniel
You are welcome. Quite frankly I've been bowled over at how polite and courteous the responses to my bugs have been. Thank you for fixing them.