'Remove characters from string which hinder XML equality testing.'

def _prepare_xml(self, xml_string):

    xml_string = xml_string.replace('        ', '')
    xml_string = xml_string.replace('\n', '')
    xml_string = xml_string.replace(' DCTB ', '')
    return xml_string
