# HTML formatted text from an XML file

**URL:** <https://forum.kirupa.com/t/html-formatted-text-from-an-xml-file/115396>\
**Category:** Uncategorized\
**Created:** [July 8, 2004, 4:27am UTC](https://forum.kirupa.com/t/html-formatted-text-from-an-xml-file/115396 "2004-07-08T04:27:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flow14](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@flow14](https://forum.kirupa.com/u/flow14)\
**Post date:** [July 8, 2004, 4:27am UTC](https://forum.kirupa.com/t/html-formatted-text-from-an-xml-file/115396/1 "2004-07-08T04:27:22Z")

</div>

Here’s the setup…

I’m creating a news scroller (based on files found on [actionscript-toolbox.com](http://actionscript-toolbox.com)). I’ve simplified the everything a little bit, so now each news item I create displays a headline (w/link), text (under the headline) and a date.  
[Example](http://www.flow14.com/files/examples/newsXML.html)

I want the ‘text’ portion of each news item to include HTML formatted text, but I can not figure out how to do it.

I’ve tried Macromedia’s advice… \_root.newsBox.html= true;  
I’ve tried the CDATA thing found in the forums.  
I’ve tried a .join/.split thing I found through google (I’ve included that one in my source files).[Example](http://www.flow14.com/files/examples/join-split-ex.html)

None of the above works…what am I missing?

Here are the files I’ve been working with…  
[Source Files](http://www.flow14.com/files/xml-kirupa.zip)

---

<div class="post-metadata">

**Author:** ![ryio](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@ryio](https://forum.kirupa.com/u/ryio)\
**Post date:** [August 25, 2004, 11:13pm UTC](https://forum.kirupa.com/t/html-formatted-text-from-an-xml-file/115396/2 "2004-08-25T23:13:36Z")

</div>

> [@flow14](#):
>
> …bump…
> 
> Anyone have any advice?

using CDATA

your tag  
\<copy id=“copy”\>116 words of the original 16th century Lipsum plus 384 \<u\>additional words\</u\>\</copy\>

altered tag  
\<copy id=“copy”\>\<!CDATA[116 words of the original 16th century Lipsum plus 384 \<u\>additional words\</u\>]]\>\</copy\>

inside CDATA you can use some basic html stuff , like a mailto, a hyperlink, font tags

hope this helps you out

greetz  
mark
