First thing to check is that you're using the nodeValue property to
access that node. Eg, if articleNode is the article node, then
yourtextfield.text = articleNode.firstChild.nodeValue;
Helen
--
http://flash-creations.com
http://i-technica.com
Anastasia McCune wrote:
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 < instead of <, but it's the theory of the
thing that's getting me...
_______________________________________________
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