RE: [xml] python xmlReader remains in previous attribute



--- Daniel Veillard <veillard redhat com> wrote:
On Tue, Jul 20, 2004 at 11:08:14AM +0100, Sitsofe Wheeler wrote:
The right number of node names are printed but after
reading the attributes all node names have the value
of the last read attribute.

  Looks like a stupid bug, is that in bugzilla ? If no, please
add it,

Ok, filed as http://bugzilla.gnome.org/show_bug.cgi?id=147993

Someone kindly pointed out to me off the list that I can use
MoveToElement() to workaround this problem. I am aware of
MoveToElement() (see my previous post
http://mail.gnome.org/archives/xml/2004-July/msg00035.html ) but
since the current behaviour of staying stuck on that attribute while
underneath actually moving on is not documented I think it
should be changed.


Sorry, I forgot to cc the list.

Actually it is documented, in the .NET documentation.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemxmlxmltextreaderclassmovetoelementtopic.asp
I haven't checked recently but according to their example and my
memories it's the expected behaviour, so I don't think
it should be changed, since the libxml2 XmlReader is supposed
to work like the .NET one.

-sbi




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]