# Xml CDATA formating html

**URL:** https://forum.kirupa.com/t/xml-cdata-formating-html/243455
**Category:** Uncategorized
**Created:** [November 7, 2007, 9:19am UTC](https://forum.kirupa.com/t/xml-cdata-formating-html/243455 "2007-11-07T09:19:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![PAUK](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@PAUK](https://forum.kirupa.com/u/PAUK)
#### Post date: [November 7, 2007, 9:19am UTC](https://forum.kirupa.com/t/xml-cdata-formating-html/243455/1 "2007-11-07T09:19:33Z")

</div>

Hi there my load of xml goes okay but all html styles as… strong… color  
and image dont work

what am I doing wrong

## AS:

var mydata:XML = new XML(“data.xml”)  
mydata.ignoreWhite = true;  
mydata.onLoad = function(success:Boolean) {  
cont = mydata.firstChild.firstChild.childNodes  
tmptxt = mydata.firstChild.firstChild.childNodes  
cont2=tmp.text  
};

cnt\_txt.html = true;  
mydata.load(“data.xml”)

* * *

XML

\<?xml version=“1.0” encoding=“utf-8” ?\>  
\<content\>  
\<txt\>\<![CDATA\<div\>\<img alt="" src="…/Uploads/flashtest/dv-cam.jpg" border=“0” /\> This is \<strong\>BOLD and this \<span style=“COLOR: #ff0000”\>red\</span\>\</strong\>\</div\>]]\>\</txt\>  
\</content\>
