def fromXMLname(string):
 retval = sub('_xFFFF_', '', string)
 def fun(matchobj):
  return _fromUnicodeHex(matchobj.group(0))
 retval = sub('_x[0-9A-Za-z]+_', fun, retval)
 return retval

def fromXMLname ( string ) : retval = sub ( '_xFFFF_' , '' , string ) def fun ( matchobj ) : return _fromUnicodeHex ( matchobj . group ( 0 ) ) retval = sub ( '_x[0-9A-Za-z]+_' , fun , retval ) return retval
convert xml name to unicode string .