Skip to main content
Inspiring
July 18, 2008
Question

special characters in XML

  • July 18, 2008
  • 1 reply
  • 481 views
this isn't necessarily a flash question, but I am importing an xml file into flash. In the XML I need to display a left bracket (<), and I tried using &lsaquo;, but this does displays litterally, and doesn't render as the left bracket character. Is there another way to do this?
This topic has been closed for replies.

1 reply

Inspiring
July 18, 2008
You need to use CDATA if the special character is a part of the string.
Inspiring
July 19, 2008
well it would be part of this:

<QUESTION>What is the significance of an albumin level of &gt;2.6 g/dL?</QUESTION>

for some reason, &gt; works, but I actually need it to be &lt; (<), but this causes the rest of the string to not display. How would CDATA need to be incorporated?
Inspiring
July 19, 2008
If you're assigning the value to an html enabled text field, then you may want to use either of the approaches in examples 3 or 4 below.