# Please Help! Problem with childnode pointing to image file from XML

**URL:** <https://forum.kirupa.com/t/please-help-problem-with-childnode-pointing-to-image-file-from-xml/245923>\
**Category:** programming\
**Created:** [December 5, 2007, 2:58pm UTC](https://forum.kirupa.com/t/please-help-problem-with-childnode-pointing-to-image-file-from-xml/245923 "2007-12-05T14:58:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lill](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@Lill](https://forum.kirupa.com/u/Lill)\
**Post date:** [December 5, 2007, 2:58pm UTC](https://forum.kirupa.com/t/please-help-problem-with-childnode-pointing-to-image-file-from-xml/245923/1 "2007-12-05T14:58:04Z")

</div>

Hi, :kir:

I’m trying to point to the image file in this XML i screenshotted below. I’m using XML Notepad to easier see how many childnodes i need and such. But… I’m having a problem with pointing to the image file url, when its not standing alone.

![](http://lill.mg5.org/images/pc/xml_problem.jpg)

Here is an example on how i pointed to a text file: (that worked) and linked it to a dynamic text field in Flash.

```auto
_root.streetaddress = this.firstChild.childNodes[0].childNodes[0].childNodes[5].childNodes[0].firstChild.nodeValue;
    streetaddress_txt.text = _root.streetaddress;

```

But how can i point to a image file when it stands together with things like “priority” and such? (look at the image).

Please help! :kir:

If there is some more info you need(to answer), that i might be able to provide, please ask.

(BTW: I didnt make this xml, and isnt really that good in it. Only know the basics, alas.)
