import re


def stripXML(text):
    """
    Remove XML annotation from a string.
    """
    text = re.sub(r'<[^>]*>', '', text)
    text = re.sub(r'\s+', ' ', text)
    text = text.strip()
    return text