[Expat-discuss] non-parsed data (CDATA)

Marco Forberg marco.forberg at gmx.net
Wed Oct 25 08:26:48 CEST 2006


Replace the < with the correct entity &lt;
The data inside the tags is handled by the function set by
SetCharacterDataHandler. But rememvber: The text might be spread accross
severak calls to the character data handler

Your xml should look like this:

<script>
  if (a &lt; b)
    ... 
</script> 

-----Ursprüngliche Nachricht-----
Von: expat-discuss-bounces at libexpat.org
[mailto:expat-discuss-bounces at libexpat.org] Im Auftrag von Andre Luis
Monteiro
Gesendet: Mittwoch, 25. Oktober 2006 02:39
An: expat-discuss at libexpat.org
Betreff: [Expat-discuss] non-parsed data (CDATA)

Hi

how does Expat handle non-parsed data? How to parse an XML element like
this:

<script>
  if (a < b)  # well-formedness error?
    ... 
</script>

We need something like: 

<script>
   <![CDATA[
   ...
   ]]>
</script>

to get the CData section handlers working?


regards
André Luís


-- 

Search for products and services at: 
http://search.mail.com

_______________________________________________
Expat-discuss mailing list
Expat-discuss at libexpat.org
http://mail.libexpat.org/mailman/listinfo/expat-discuss



More information about the Expat-discuss mailing list