Searched refs:xml_data (Results 1 – 2 of 2) sorted by relevance
35 def assert_no_error(self, xml_data): argument39 checker.check(xml_data.split('\n'))41 def assert_error(self, expected_line_number, expected_category, xml_data): argument47 checker.check(xml_data.split('\n'))
1848 def _detectEncoding(self, xml_data, isHTML=False): argument1852 if xml_data[:4] == '\x4c\x6f\xa7\x94':1854 xml_data = self._ebcdic_to_ascii(xml_data)1855 elif xml_data[:4] == '\x00\x3c\x00\x3f':1858 xml_data = unicode(xml_data, 'utf-16be').encode('utf-8')1859 elif (len(xml_data) >= 4) and (xml_data[:2] == '\xfe\xff') \1860 and (xml_data[2:4] != '\x00\x00'):1863 xml_data = unicode(xml_data[2:], 'utf-16be').encode('utf-8')1864 elif xml_data[:4] == '\x3c\x00\x3f\x00':1867 xml_data = unicode(xml_data, 'utf-16le').encode('utf-8')[all …]