Re: [xml] Reading CDATA
- From: Hartmut Sbosny <hartmut sbosny gmx de>
- To: veillard redhat com
- Cc: xml gnome org
- Subject: Re: [xml] Reading CDATA
- Date: Fri, 26 Sep 2008 11:42:25 +0200
On Fri, 26. September 2008 11:15, Daniel Veillard wrote:
On Fri, Sep 26, 2008 at 10:31:36AM +0200, Hartmut Sbosny wrote:
Hi Daniel,
On Thursday, 25. September 2008 17:05, Daniel Veillard wrote:
On Wed, Sep 17, 2008 at 06:48:37PM +0200, Hartmut Sbosny wrote:
Hello,
I am fresh to libxml. I want to read an xml file containing
the part
<data>
<![CDATA[...]]>
</data>
Currently I use the xmlParseDoc() interface. My first try was to read
the <data> node string via xmlNodeListGetString(). This returns
something
You just can't using that API.
Is this a principle limitation of the xmlParseDoc API or only an
accidental API lack? Which API is suitable to read cdata? Sorry for my
stumbling asking, I am new to libxml and xml.
No API lack. You use an API to dump the content of a LIST of node
when you want the content of a SINGLE node.
There is a zillion ways to get it like accessing directly the
node->content pointer or using the API getting the content of
a single node like xmlNodeGetContent()
Ok, now I understand (I related "You just can't using that API" to
xmlParseDoc(), not to xmlNodeListGetString()).
Many thanks
Hartmut
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]