Re: [xml] Question about parent/child (python-libxml2)
- From: Daniel Veillard <veillard redhat com>
- To: "W. Borgert" <debacle debian org>
- Cc: xml gnome org
- Subject: Re: [xml] Question about parent/child (python-libxml2)
- Date: Mon, 10 May 2004 09:45:45 -0400
On Mon, May 10, 2004 at 06:05:32AM +0000, W. Borgert wrote:
On Sun, May 09, 2004 at 03:39:47PM -0400, Daniel Veillard wrote:
the para node has a list of children. The childens are a doubly
linked list (prev/next) .
what you want is the serialization of that list. You can serialize
each children independantly and concatenate the result.
I think, that I did exactly this in the first place :-) As
I wrote in my initial mail
http://lists.gnome.org/archives/xml/2004-May/msg00078.html,
I did:
[...]
for c in n.children:
And how is that a proper answer to my mail stating the
children is a doubly linked list accessed with prev/next
fields ??? Obviously the constructor for "for .. in" does
a recursive descent on each element list. So please read
what I replied and use the next accessor to walk the list !
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]