Re: [xml] get contents literally (or strip outer element tags)?
- From: "Aron Stansvik" <elvstone gmail com>
- To: xml gnome org
- Cc: Hans Martin <HMartin1 gmx net>
- Subject: Re: [xml] get contents literally (or strip outer element tags)?
- Date: Sun, 2 Mar 2008 18:32:29 +0100
2008/3/2, Hans Martin <HMartin1 gmx net>:
Datum: Sun, 2 Mar 2008 17:05:05 +0100
> Von: "Aron Stansvik" <elvstone gmail com>
> 2008/3/2, Hans Martin <HMartin1 gmx net>:
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:
Great.
Aron
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]