# Creating XML problem

**URL:** <https://forum.kirupa.com/t/creating-xml-problem/301334>\
**Category:** flash\
**Created:** [December 7, 2009, 10:26pm UTC](https://forum.kirupa.com/t/creating-xml-problem/301334 "2009-12-07T22:26:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m2244](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@m2244](https://forum.kirupa.com/u/m2244)\
**Post date:** [December 7, 2009, 10:26pm UTC](https://forum.kirupa.com/t/creating-xml-problem/301334/1 "2009-12-07T22:26:19Z")

</div>

Hello,

I have been working on a tool for use in our office which creates XML. The problem is if a user leaves any of the text fields blank, I get only the end tag, for example \</text\>. This only happens if a text field is blank. Does anyone have any suggestions as to how to handle this. Do I have to check every field for data? I am at home now so I can not post the code right now. But basically, I set a variable which holds the XML structure and is filled in with variables from the text fields.

Thanks for your suggestions.

m2244
