After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 147993 - python xmlReader remains in previous attribute
python xmlReader remains in previous attribute
Status: VERIFIED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2004-07-20 13:55 UTC by Sitsofe Wheeler
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4


Attachments
Python test case to print node names and attributes (641 bytes, text/x-python)
2004-07-20 13:57 UTC, Sitsofe Wheeler
Details

Description Sitsofe Wheeler 2004-07-20 13:55:09 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)")
Comment 1 Sitsofe Wheeler 2004-07-20 13:57:01 UTC
Created attachment 29692 [details]
Python test case to print node names and attributes
Comment 2 William M. Brack 2004-07-22 17:26:56 UTC
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
Comment 3 Daniel Veillard 2004-08-22 20:36:17 UTC
 This should be fixed in release libxml2-2.6.12.
                                                                                
   thanks,
                                                                                
Daniel
Comment 4 Sitsofe Wheeler 2004-08-22 21:01:52 UTC
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.