'Export this :class:`XModuleDescriptor` as XML, by setting attributes on the provided
`node`.'

def add_xml_to_node(self, node):

    xml_string = self.export_to_xml(self.runtime.export_fs)
    exported_node = etree.fromstring(xml_string)
    node.tag = exported_node.tag
    node.text = exported_node.text
    node.tail = exported_node.tail
    for (key, value) in exported_node.items():
        node.set(key, value)
    node.extend(list(exported_node))
