Re: [libxml++] Add CdataNode to DOM tree



Hi,

In my app the CDATA text can get quite long and sometimes is read from
a file. Maybe an overload that takes an std::istream instead of a
std::string for it's text contents?

Cheers,
Andrej


On Fri, Sep 10, 2010 at 4:21 AM, Murray Cumming <murrayc murrayc com> wrote:
> On Wed, 2010-08-18 at 15:01 +0900, Andrej van der Zee wrote:
>> Hi,
>>
>> In need a way to add a CdataNode child to a Node*. I can only find
>> examples how to read CdataNode and examples how to add TextNode. Is
>> there a way to create a CdataNode and add it to a DOM tree?
>
> Should we just add an Element::set_child_cdata() method, like the
> existing ones Element::set_child_text() method?
> http://library.gnome.org/devel/libxml
> ++/unstable/classxmlpp_1_1Element.html#a9be4234049fe13f2941d9c7a5dbc37e2
>
> And an add_child_cdata() like add_child_text()?
> http://library.gnome.org/devel/libxml
> ++/unstable/classxmlpp_1_1Element.html#a15cd56e871aaf9625b7f4fbedb97c764
>
> --
> murrayc murrayc com
> www.murrayc.com
> www.openismus.com
>
>




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