This content has been marked as final. Show 2 replies
Here is how to use CDATA in xml: http://www.w3schools.com/xml/xml_cdata.asp
Note that everything inside a CDATA section is ignored by the parser. So
that means your <b> tags may not work once you get it into flash.
Dan Smith > adobe community expert
Flash Helps > http://www.smithmediafusion.com/blog/?cat=11
"PKENGLISH" <firstname.lastname@example.org> wrote in message
> I'm trying to make some of the text in my XML bold and italic. I read
> that you
> need to use CDATA to make it so the tags actually work but I'm having
> with it working. Here is my XML (with what i want to be bold)
> <?xml version="1.0" encoding="utf-8"?>
> <gallery name="houses">
> <item dir="AppleAlley/" name="Apple Alley" location="Milford, PA"
> newly-built shingle-style Victorian house was inspired by an historic
> photograph of the building that had occupied its site for nearly one
> years. The interior has been re-imagined for modern living, with an open
> kitchen and generous living areas that comfortably accommodate large
> <b><i>Project Under Construction</i></b>">
> <image file="apple_alley_1.jpg" />
> <image file="apple_alley_2.jpg" />
> <image file="apple_alley_3.jpg" />
I believe CDATA really is the best way to do this for pulling html in via xml. There are some other posts in this forum on the subject... if you search in AS 1& 2 for CDATA you should find some. search was giving me errors when I tried just now but I'm sure it will just be transient.
Here's a quick example that might show you how to do things.