Lines Matching refs:XML
266 self.assertEqual(ET.XML, ET.fromstring)
299 elem = ET.XML("<body><tag/></body>")
340 self.serialize_check(ET.XML("<tag>hello</tag>"),
342 self.serialize_check(ET.XML("<tag>hello</tag>"),
344 self.serialize_check(ET.XML("<tag><![CDATA[hello]]></tag>"),
363 elem = ET.XML(SAMPLE_XML)
377 e1 = ET.XML("<tag>hello<foo/></tag>")
506 element = ET.XML("<html><body>text</body></html>")
736 elem = ET.XML(SAMPLE_XML)
754 elem = ET.XML("<html><body>text</body></html>")
763 self.assertEqual(ET.XML(xml.encode(encoding)).text, body)
764 self.assertEqual(ET.XML(xml).text, body)
794 self.assertEqual(ET.tostring(ET.XML(bxml(encoding))), b'<xml />')
806 self.assertRaises(ValueError, ET.XML, bxml(encoding))
813 self.assertRaises(ET.ParseError, ET.XML, bxml(encoding))
815 self.assertRaises(ValueError, ET.XML, xml('undefined').encode('ascii'))
816 self.assertRaises(LookupError, ET.XML, xml('xxx').encode('ascii'))
821 e = ET.XML("<html><link/><script>1 < 2</script></html>")
834 e = ET.XML('<html><CamelCase>text</CamelCase></html>')
845 e = ET.XML("<document title='舰'>test</document>")
853 ET.XML("<document>&entity;</document>")
858 ET.XML(ENTITY_XML)
873 ET.XML(EXTERNAL_ENTITY_XML)
882 elem = ET.XML("<tag xml:lang='en' />")
887 elem = ET.XML("<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' />")
891 elem = ET.XML("<html:html xmlns:html='http://www.w3.org/1999/xhtml' />")
895 elem = ET.XML("<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope' />")
900 elem = ET.XML(SAMPLE_XML_NS)
978 elem = ET.XML('<!DOCTYPE html PUBLIC'
1041 serialized = serialize(ET.XML('<%s />' % elem), method='html')
1043 serialized = serialize(ET.XML('<%s></%s>' % (elem,elem)),
1306 data = ET.XML(data)
1403 document = ET.XML(XINCLUDE["C1.xml"])
1410 document = ET.XML(XINCLUDE["C2.xml"])
1417 document = ET.XML(XINCLUDE_BAD["B1.xml"])
1424 document = ET.XML(XINCLUDE_BAD["B2.xml"])
1467 elem = ET.XML(SAMPLE_XML)
1475 tree = ET.XML("<doc><table><tbody/></table></doc>")
1482 tree = ET.XML("<doc><table><tbody/></table></doc>")
1490 tree = ET.XML(b"<?xml version='1.0' encoding='iso-8859-1'?><t\xe4g />")
1493 tree = ET.XML(b"<?xml version='1.0' encoding='iso-8859-1'?>"
1499 tree = ET.XML(b"<?xml version='1.0' encoding='iso-8859-1'?>"
1515 e = ET.XML("<!DOCTYPE doc [<!ENTITY ldots '舰'>]>"
1525 ET.XML(b"<!DOCTYPE doc SYSTEM 'doc.dtd'>"
1577 self.assertEqual(ET.XML(ET.tostring(e)).get("text"),
1579 self.assertEqual(ET.tostring(ET.XML(ET.tostring(e))),
1675 e = ET.XML(b"<?xml version='1.0' encoding='utf-8'?>"
1680 e = ET.XML(b"<?xml version='1.0' encoding='iso-8859-1'?>"
1687 e = ET.XML('<prefix:localname xmlns:prefix="${stuff}"/>')
1693 elem = ET.XML("<body><tag/></body>")
1695 newelem = ET.XML(SAMPLE_XML)
1759 root = ET.XML(xml)
2181 e = ET.XML(SAMPLE_XML)
2186 e[2] = ET.XML(SAMPLE_SECTION)
2201 self.assertEqual(ET.XML('<tag><empty /></tag>').findtext('empty'), '')
2211 e = ET.XML(LINEAR_XML)
2226 e = ET.XML(SAMPLE_XML)
2227 e[2] = ET.XML(SAMPLE_SECTION)
2303 e = ET.XML(SAMPLE_XML_NS)
2313 root = ET.XML('''
2327 e = ET.XML(SAMPLE_XML)
2332 e = ET.XML(SAMPLE_XML)
2351 doc = ET.XML("<html><body>this is a <i>paragraph</i>.</body>..</html>")
2374 doc = ET.XML("<root>a&<sub>b&</sub>c&</root>")
2400 doc = ET.XML('''
2432 doc = ET.XML('''
2952 tree = ET.ElementTree(ET.XML('''<site />'''))
2959 tree = ET.ElementTree(ET.XML('''<site />'''))
2968 tree = ET.ElementTree(ET.XML('''<site />'''))
2977 tree = ET.ElementTree(ET.XML('''<site />'''))
3002 tree = ET.ElementTree(ET.XML('''<site />'''))
3014 tree = ET.ElementTree(ET.XML('''<site />'''))
3031 tree = ET.ElementTree(ET.XML('''<site />'''))
3048 tree = ET.ElementTree(ET.XML('''<site />'''))
3056 tree = ET.ElementTree(ET.XML('''<site />'''))
3114 x = ET.XML("<a>foo</a>")