# A little blog in xml problem

**URL:** <https://forum.kirupa.com/t/a-little-blog-in-xml-problem/172591>\
**Category:** Uncategorized\
**Created:** [December 15, 2005, 9:59pm UTC](https://forum.kirupa.com/t/a-little-blog-in-xml-problem/172591 "2005-12-15T21:59:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![atum](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@atum](https://forum.kirupa.com/u/atum)\
**Post date:** [December 15, 2005, 9:59pm UTC](https://forum.kirupa.com/t/a-little-blog-in-xml-problem/172591/1 "2005-12-15T21:59:04Z")

</div>

I’m trying to build a little blog with the help of the xml tuturials. SO far so good exept for one thing. I can load the text . But i cant load the image .Dont know why.

function loadXML(loaded) {

if (loaded) {

\_root.blog = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;  
\_root.titulo = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;  
\_root.imagem = this.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue;  
\_root.texto = this.firstChild.childNodes[0].childNodes[3].firstChild.nodeValue;

data\_txt.text = \_root.blog;  
titulo\_txt.text = \_root.titulo;  
imagem\_mc.loadMovie = \_root.imagem;  
texto\_txt.text = \_root.texto;

} else {  
trace(“file not loaded!”);

}

}  
xmlData = new XML();  
xmlData.ignoreWhite = true;  
xmlData.onLoad = loadXML;  
xmlData.load(“blog.xml”);

* * *

this is it. Whats wrong with this? i just can’t understand it. I’m trying to solve this before i try to ad buttons to move forward and backwards betwen posts.

Thanks
