def is_valid_xml_char_ordinal(i):
 return ((32 <= i <= 55295) or (i in (9, 10, 13)) or (57344 <= i <= 65533) or (65536 <= i <= 1114111))

def is_valid_xml_char_ordinal ( i ) : return ( ( 32 <= i <= 55295 ) or ( i in ( 9 , 10 , 13 ) ) or ( 57344 <= i <= 65533 ) or ( 65536 <= i <= 1114111 ) )
defines whether char is valid to use in xml document xml standard defines a valid char as:: char ::= #x9 | #xa | #xd | [#x20-#xd7ff] | [#xe000-#xfffd] | [#x10000-#x10ffff] .