Greetings everyone!

I am reading info in from an XML document and spitting the content out into
a dynamic text box.  Sample content appears as such.



<article title="Testing"><![CDATA[This is a test.]]></article>



In what is the article text (the part that says This is a test), if I put in
any of the 'illegal' XML characters of  >

&

'

"

it spits it all out just fine.



For example,

<![CDATA[This is > ' " &  a test.]]>

comes out just fine.



However, if I put a < the text breaks.  So, say I had



<article title="Testing" site="Testing" siteHref="http://www.microsoft.com";
href="http://www.microsoft.com";><![CDATA[This is < a test.]]></article>



All I see is 'This is'.



Isn't the CDATA meant to cover all special characters?  I don't know why <
is treated differently.  Is there some kind of escape character to use that
I've missed?


It works just fine if I use &lt; instead of <, but it's the theory of the
thing that's getting me...

Many thanks for any insights...
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to