I'm current working in C# to save data into an XML doc.

Is there a way to stop or remove empty attribute from being saved from a text box i.e

userboy=""
imgBoy=""

here's what I'm saving to XML

Code:
<user userID="1" userboy="" usergirl="Jane Doe" imgBoy="" imgGirl="img/play_girl.png" />