# Xml + as problem ! help?

**URL:** <https://forum.kirupa.com/t/xml-as-problem-help/190776>\
**Category:** Uncategorized\
**Created:** [June 14, 2006, 4:54pm UTC](https://forum.kirupa.com/t/xml-as-problem-help/190776 "2006-06-14T16:54:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![this](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/this/32/669_2.png) [@this](https://forum.kirupa.com/u/this)\
**Post date:** [June 14, 2006, 4:54pm UTC](https://forum.kirupa.com/t/xml-as-problem-help/190776/1 "2006-06-14T16:54:53Z")

</div>

Problem with “nImage” in my code. i wanna load only data from xml … but when i trace the result show tag + data (\<imagem\>data\</imagem\>) and i want only data without tag. below my code. help.

```auto

// --
news.autoSize = true;
news.html = true;
news.htmlText = "Carregando..";
// --
System.useCodepage = true;
var nNoticias:XML = new XML();
nNoticias.ignoreWhite = true;
nNoticias.load(_global.path + "noticias.xml");
nNoticias.onLoad = function() {
    news.htmlText = "";
    qtd = this.childNodes[0].childNodes.length;
    for (i=0; i<qtd; i++) {
        var nData = (this.childNodes[0].childNodes*.childNodes[0]);
        var nTexto = (this.childNodes[0].childNodes*.childNodes[1]);
        var nImage = (this.childNodes[0].childNodes*.childNodes[2]);
        trace(nImage);
        news.htmlText += "<font>"+nData+"</font><br><img src='"+_global.path+"portfolio/"+nImage+"'><br><br><br><br><br><br><font>"+nTexto+"</font><br><font> ________ </font><br><br>";
    }
};

```
