Re: [xml] Question about parent/child (python-libxml2)

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,
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 Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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