Nested XML for attributes including legal attribute values