'Used with a regular expression to substitute the
appropriate XML entity for an XML special character.'

@classmethod
def _substitute_xml_entity(cls, matchobj):

    entity = cls.CHARACTER_TO_XML_ENTITY[matchobj.group(0)]
    return ('&%s;' % entity)
