1
내가 얻을 참조ElementTree.ParseError : 잘못된 문자 번호
ElementTree.ParseError: reference to invalid character number
는 A 태그 값으로 다음이 포함되어 XML 구문 분석 :
respXML = httpResponse.content
#also possible respXML = httpResponse.content.decode("utf-8")
#but both get the same error
#this line throws the error
respRoot = ET.fromstring(respXML)
: locat
내 코드의 모양을 겉으로보기에 잘못된 문자 숫자에 대해 파서를 방탄 처리하는 방법은 무엇입니까?
''은 제어 문자 START HEADING을 나타냅니다. XML 파서가 해당 문자를 발견하면 오류가 발생합니다. 이 문자는 XML 1.0 (https://www.w3.org/TR/xml/#charsets)에서 금지되어 있습니다. – mzjn