# Text from XML with HTML tags not displayed

**URL:** https://forum.kirupa.com/t/text-from-xml-with-html-tags-not-displayed/288175
**Category:** Uncategorized
**Created:** [May 12, 2009, 1:55pm UTC](https://forum.kirupa.com/t/text-from-xml-with-html-tags-not-displayed/288175 "2009-05-12T13:55:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pantas](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pantas](https://forum.kirupa.com/u/pantas)
#### Post date: [May 12, 2009, 1:55pm UTC](https://forum.kirupa.com/t/text-from-xml-with-html-tags-not-displayed/288175/1 "2009-05-12T13:55:47Z")

</div>

well, hello there kirupa’s!

i’m having a really bad time with a text from XML with HTML tags. looks like the css tags aind read…

can anyone help me out here?  
i’ve read already a bunch of tutorials, but cant find my problem…

so basicaly, there is a menu, and when i press a btn, it attaches a movieclip with some textfield in there. the text reads the xml tags, but doens show the css styles.

i got this so far:  
[AS]  
//attach text holder  
var Textos:MovieClip = RaizMC.attachMovie(“holder Textos”, “conteudos\_mc”, RaizMC.getNextHighestDepth())  
//init TextArea  
Textos.texto\_txt.html = true;  
Textos.texto\_txt.wordWrap = true;  
Textos.texto\_txt.multiline = true;  
/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/  
//load css  
Formatacao = new StyleSheet();  
Formatacao.load(“formatacao.css”);  
Textos.texto\_txt.styleSheet = Formatacao;  
//place text  
Textos.titulo\_txt.text = \_root.sobreTO[this.idAR][0]  
Textos.titulo\_txt.autoSize = true  
Textos.texto\_txt.\_y = Textos.titulo\_txt.\_y + Textos.titulo\_txt.\_height  
Textos.texto\_txt.htmlText = \_root.sobreTO[this.idAR][1]  
Textos.texto\_txt.autoSize = true  
[/AS]

**the css file is good, xml loaded correctely, everything seams ok, exept for my textfield. it simply doesnt read the \<spam class"someStyle"\>\</spam\>**

i also did the \<![CDATA[]] on the xml.

hope someone can figure this out…  
thanks in advance!
