# RSS Feed with 1 'undefined' node, and a backup plan needed!

**URL:** https://forum.kirupa.com/t/rss-feed-with-1-undefined-node-and-a-backup-plan-needed/196436
**Category:** flash
**Created:** [August 8, 2006, 12:54pm UTC](https://forum.kirupa.com/t/rss-feed-with-1-undefined-node-and-a-backup-plan-needed/196436 "2006-08-08T12:54:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Aussie01](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Aussie01](https://forum.kirupa.com/u/Aussie01)
#### Post date: [August 8, 2006, 12:54pm UTC](https://forum.kirupa.com/t/rss-feed-with-1-undefined-node-and-a-backup-plan-needed/196436/1 "2006-08-08T12:54:00Z")

</div>

Hi,

I have the following code that is a part of an XML object in my actionscript. It fills a dynamic text field (which is buried in a few symbols) with text from the RSS feed.

Problem is, one of the nodes on the RSS feed is empty. When it’s empty, my text field returns ‘undefined’. I’ve tried with the code below to specify if the text is ‘undefined’, then it should display something else, like HELLO for instance.

```auto

var news = newsNode.item[rssCounter].description.getValue();
	
	if (news.htmlText == "undefined") {
		_root.afterpreload.everything.ticker.newsmc.head.htmlText = "HELLO";
	}else{
		_root.afterpreload.everything.ticker.newsmc.head.htmlText = news;
	}

```

I’ve had no luck, as the feed just plays as normal returning an ‘undefined’ whenever I get to the node with no data.

I’ve also tried…

```auto
 

if(news.htmlText == "") {

```

…but had no luck there either. Any help would be greatly appreciated.
