invalid xml elements were created

xml elements can not be numbers or empty ie '<0>' or '<>'.

When we where dealing with a <value> element for a select we where seeing <0>No</0><1>Yes</1><>All</>.

this was invalid xml markup so we added logic to detect this and re write the elements as
<No>0</No><Yes>1</Yes><All/>