'Extract the metadata from the XML.'

@staticmethod
def _get_metadata_from_xml(xml_object, remove=True):

    meta = xml_object.find('meta')
    if (meta is None):
        return ''
    dmdata = meta.text
    if remove:
        xml_object.remove(meta)
    return dmdata
