# HTML formatted text from an XML file

**URL:** <https://forum.kirupa.com/t/html-formatted-text-from-an-xml-file/56855>\
**Category:** programming\
**Created:** [July 8, 2004, 4:27am UTC](https://forum.kirupa.com/t/html-formatted-text-from-an-xml-file/56855 "2004-07-08T04:27:22Z")\
**Posts on this page:** 3\
**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/56855/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:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 13, 2004, 6:25am UTC](https://forum.kirupa.com/t/html-formatted-text-from-an-xml-file/56855/2 "2004-07-13T06:25:57Z")

</div>

…bump…

Anyone have any advice?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 25, 2004, 11:13pm UTC](https://forum.kirupa.com/t/html-formatted-text-from-an-xml-file/56855/3 "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
