(self, x)
return "&" + self.XML_SPECIAL_CHARS_TO_ENTITIES[x.group(0)[0]] + ";"
Used with a regular expression to substitute the
        appropriate XML entity for an XML special character.
Used with a regular expression to substitute the
        appropriate XML entity for an XML special character.
Used with a regular expression to substitute the appropriate XML entity for an XML special character .
def _sub_entity(self, x):
        """Used with a regular expression to substitute the
        appropriate XML entity for an XML special character."""
        return "&" + self.XML_SPECIAL_CHARS_TO_ENTITIES[x.group(0)[0]] + ";"
def _sub_entity ( self , x ) : return "&" + self . XML_SPECIAL_CHARS_TO_ENTITIES [ x . group ( 0 ) [ 0 ] ] + ";"