'Return an xml element representing to this definition.'

def definition_to_xml(self, resource_fs):

    poll_str = u'<{tag_name}>{text}</{tag_name}>'.format(tag_name=self._tag_name, text=self.question)
    xml_object = etree.fromstring(poll_str)
    xml_object.set('display_name', self.display_name)
    def add_child(xml_obj, answer):
        answer_text = unicode(Text(answer['text']))
        child_str = u'<{tag_name}    id="{id}">{text}</{tag_name}>'.format(tag_name=self._child_tag_name, id=answer['id'], text=answer_text)
        child_node = etree.fromstring(child_str)
        xml_object.append(child_node)
    for answer in self.answers:
        add_child(xml_object, answer)
    return xml_object
