AS handling XML empty elements

I’ve got a fairly simple flash app that searches an xml file and returns text listings of the content of the childnodes back to a dynamic text box for display. The xml file will be edited and managed by an outside user. It works great but if there’s an empty childnode (element) it comes back in the list as undefined. I’d like to be able to leave the xml element format the same for the user whether it has text inside the element or not. If it’s left empty though, I don’t want it to show up. I’ve seen several ideas on how to handle this but was wondering what the best and most simple solution is. Thanks in advance.