# Getting links from xml

**URL:** <https://forum.kirupa.com/t/getting-links-from-xml/204926>\
**Category:** Uncategorized\
**Created:** [October 24, 2006, 5:35pm UTC](https://forum.kirupa.com/t/getting-links-from-xml/204926 "2006-10-24T17:35:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sean1983uk](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sean1983uk](https://forum.kirupa.com/u/sean1983uk)\
**Post date:** [October 24, 2006, 5:35pm UTC](https://forum.kirupa.com/t/getting-links-from-xml/204926/1 "2006-10-24T17:35:04Z")

</div>

i have an xml file and some of the items have links and some dont.

is there a way in flash to say if that xml node is empty then to do nothing but if it has a link in it then to open that window?

i tried using:

target\_mc.onRelease = function (){  
if (reports[k] = !null) {  
getURL(reports[k]. “\_blank”);}  
else{  
}  
}

but not too sure what i’m doing…

---

<div class="post-metadata">

**Author:** ![RileyBoy](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@RileyBoy](https://forum.kirupa.com/u/RileyBoy)\
**Post date:** [October 24, 2006, 6:20pm UTC](https://forum.kirupa.com/t/getting-links-from-xml/204926/2 "2006-10-24T18:20:06Z")

</div>

if (reports[k] != null || reports[k] != undefined || reports[k] != " "){

i’ve used all of these at some time or another, so at least one should work depending on your XML setup…

---

<div class="post-metadata">

**Author:** ![sean1983uk](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sean1983uk](https://forum.kirupa.com/u/sean1983uk)\
**Post date:** [October 24, 2006, 6:35pm UTC](https://forum.kirupa.com/t/getting-links-from-xml/204926/3 "2006-10-24T18:35:38Z")

</div>

FIXED!
