> Datum: Sun, 2 Mar 2008 17:05:05 +0100
> Von: "Aron Stansvik" <[EMAIL PROTECTED]>
>
> 2008/3/2, Hans Martin <[EMAIL PROTECTED]>:
> > I'm using libxml2 2.6.31 with Python 2.4. I try to get from:
> >
> > <a>some <b>content</b> is ∈ here</a>
> >
> > the content of "a" unchanged:
> >
> > some <b>content</b> is ∈ here
>
> For this, I think you need to traverse the children of <a> and dump
> them individually. E.g:
Thanks, this works great. Just for reference, here the Python code:
a_list = []
cur = elem.children
while cur != None:
a_list.append(str(cur))
cur = cur.next
print "".join(a_list)
Cheers!
--
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games!
http://games.entertainment.web.de/de/entertainment/games/free
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml