Re: non-parsed data (CDATA)

"Marco Forberg" <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
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: [email protected]
[mailto:[email protected]] Im Auftrag von Andre Luis
Monteiro
Gesendet: Mittwoch, 25. Oktober 2006 02:39
An: [email protected]
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
[email protected]
http://mail.libexpat.org/mailman/listinfo/expat-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.