Re: [xml] CDATA

Date view Thread view Subject view Author view

From: Stephane Conversy (Stephane.Conversy@lri.fr)
Date: Thu Dec 09 1999 - 11:09:19 EST


Daniel Veillard wrote:

> On Mon, Dec 06, 1999 at 04:43:14PM +0100, Stephane Conversy wrote:
> >
> > Stephane Conversy wrote:
> >
> > > by the way, how to get the text in a CDATA section ?
> > >
> >
> > ok it's just a matter of xmlNodePtr->current...
> >
> > for my information: given the fact that we have a 'content' field,
> > why should we use xmlNodeListGetString ?
> >
>
> Because entities references are usually not converted directly
> as text (otherwise one would loose information when writing an xmlDoc back).
>
> http://xmlsoft.org/gnome-xml-tree.html#XMLNODELISTGETSTRING
>
> "Returns the string equivalent to the text contained in the Node list made
> of TEXTs and ENTITY_REFs"
>
> This function substitutes the entities by their content and
> coalesce the result in one string (without modifying the DOM tree).
>
> Daniel
>

Is there such a function to build one string from a mixed content (CDATA+text)
?

--
Stéphane Conversy
http://www-ihm.lri.fr/~conversy/
mailto:conversy@lri.fr

---- Message from the list xml@rufus.w3.org Archived at : http://rufus.w3.org/veillard/XML/messages to unsubscribe: echo "unsubscribe xml" | mail majordomo@rufus.w3.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:54 EDT