# 'if XML node is empty' problem

**URL:** <https://forum.kirupa.com/t/if-xml-node-is-empty-problem/246300>\
**Category:** flash\
**Created:** [December 9, 2007, 10:24pm UTC](https://forum.kirupa.com/t/if-xml-node-is-empty-problem/246300 "2007-12-09T22:24:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asparagus](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@Asparagus](https://forum.kirupa.com/u/Asparagus)\
**Post date:** [December 9, 2007, 10:24pm UTC](https://forum.kirupa.com/t/if-xml-node-is-empty-problem/246300/1 "2007-12-09T22:24:59Z")

</div>

Believe me I have searched before posting here, and I’ll do my best to explain this as simply as possible. Many thanks to any kind soul that can help.

I have made a menu system with 6 buttons, and on the layer above, I’ve made 6 ‘not active looking button’ movieclips:

WEB / MYSPACE / BUY DK / BUY EU / DOWNLOAD / iTUNES

And I have made an XML file that contains the links for each button.

```auto
<?xml version="1.0" encoding="utf-8"?>
<infoXML>
    <releaseXML>
        <getWeb>http://www.google.com</getWeb>
        <getMySpace>http://www.myspace.com</getMySpace>
        <getBuyDK>http://www.cdskiven.dk</getBuyDK>
        <getBuyEU>http://www.cdon.com</getBuyEU>
        <getDownload></getDownload>
        <getiTunes>http://phobos.apple.com/</getiTunes>
    </releaseXML>    
</infoXML>

```

What I’m trying to do, is that if there’s an empty node, getDownload in this example is _\_visible = false;_ and the ‘not active’ _\_visible=true;_

Here’s my feeble attempt, and I’ve tried various variations of this, to no avail.

```auto
if (xml.releaseXML.getWeb != undefined) {
    btn1._visible = false;
    nolink1._visible = true;
}
else {
    btn1._visible = true;
    nolink1._visible = false;
}

```
