Lines Matching refs:XML
239 self.assertEqual(ET.XML, ET.fromstring)
273 elem = ET.XML("<body><tag/></body>")
314 self.serialize_check(ET.XML("<tag>hello</tag>"),
316 self.serialize_check(ET.XML("<tag>hello</tag>"),
318 self.serialize_check(ET.XML("<tag><![CDATA[hello]]></tag>"),
337 elem = ET.XML(SAMPLE_XML)
351 e1 = ET.XML("<tag>hello<foo/></tag>")
491 element = ET.XML("<html><body>text</body></html>")
702 elem = ET.XML(SAMPLE_XML)
720 elem = ET.XML("<html><body>text</body></html>")
729 self.assertEqual(ET.XML(xml.encode(encoding)).text, body)
759 self.assertEqual(ET.tostring(ET.XML(bxml(encoding))), b'<xml />')
771 self.assertRaises(ValueError, ET.XML, bxml(encoding))
778 self.assertRaises(ET.ParseError, ET.XML, bxml(encoding))
780 self.assertRaises(ValueError, ET.XML, xml('undefined').encode('ascii'))
781 self.assertRaises(LookupError, ET.XML, xml('xxx').encode('ascii'))
786 e = ET.XML("<html><link/><script>1 < 2</script></html>")
799 e = ET.XML('<html><CamelCase>text</CamelCase></html>')
810 e = ET.XML("<document title='舰'>test</document>")
818 ET.XML("<document>&entity;</document>")
823 ET.XML(ENTITY_XML)
840 elem = ET.XML("<tag xml:lang='en' />")
845 elem = ET.XML("<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' />")
849 elem = ET.XML("<html:html xmlns:html='http://www.w3.org/1999/xhtml' />")
853 elem = ET.XML("<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope' />")
858 elem = ET.XML(SAMPLE_XML_NS)
936 elem = ET.XML('<!DOCTYPE html PUBLIC'
999 serialized = serialize(ET.XML('<%s />' % elem), method='html')
1001 serialized = serialize(ET.XML('<%s></%s>' % (elem,elem)),
1110 data = ET.XML(data)
1198 document = ET.XML(XINCLUDE["C1.xml"])
1205 document = ET.XML(XINCLUDE["C2.xml"])
1212 document = ET.XML(XINCLUDE_BAD["B1.xml"])
1219 document = ET.XML(XINCLUDE_BAD["B2.xml"])
1262 elem = ET.XML(SAMPLE_XML)
1270 tree = ET.XML("<doc><table><tbody/></table></doc>")
1277 tree = ET.XML("<doc><table><tbody/></table></doc>")
1285 tree = ET.XML(b"<?xml version='1.0' encoding='iso-8859-1'?><t\xe4g />")
1288 tree = ET.XML(b"<?xml version='1.0' encoding='iso-8859-1'?>"
1294 tree = ET.XML(b"<?xml version='1.0' encoding='iso-8859-1'?>"
1310 e = ET.XML("<!DOCTYPE doc [<!ENTITY ldots '舰'>]>"
1318 ET.XML("<!DOCTYPE doc SYSTEM 'doc.dtd'>"
1370 self.assertEqual(ET.XML(ET.tostring(e)).get("text"),
1372 self.assertEqual(ET.tostring(ET.XML(ET.tostring(e))),
1474 e = ET.XML(b"<?xml version='1.0' encoding='utf-8'?>"
1479 e = ET.XML(b"<?xml version='1.0' encoding='iso-8859-1'?>"
1486 e = ET.XML('<prefix:localname xmlns:prefix="${stuff}"/>')
1492 elem = ET.XML("<body><tag/></body>")
1494 newelem = ET.XML(SAMPLE_XML)
1507 root = ET.XML(xml)
1852 e = ET.XML(SAMPLE_XML)
1868 e = ET.XML(SAMPLE_XML)
1873 e[2] = ET.XML(SAMPLE_SECTION)
1888 self.assertEqual(ET.XML('<tag><empty /></tag>').findtext('empty'), '')
1898 e = ET.XML(LINEAR_XML)
1908 e = ET.XML(SAMPLE_XML)
1909 e[2] = ET.XML(SAMPLE_SECTION)
1952 e = ET.XML(SAMPLE_XML_NS)
1962 e = ET.XML(SAMPLE_XML)
1968 e = ET.XML(SAMPLE_XML)
1977 e[2] = ET.XML(SAMPLE_SECTION)
2003 doc = ET.XML("<html><body>this is a <i>paragraph</i>.</body>..</html>")
2027 doc = ET.XML("<root>a&<sub>b&</sub>c&</root>")
2053 doc = ET.XML('''
2092 doc = ET.XML('''
2569 tree = ET.ElementTree(ET.XML('''<site />'''))
2575 tree = ET.ElementTree(ET.XML('''<site />'''))
2589 tree = ET.ElementTree(ET.XML('''<site />'''))
2606 tree = ET.ElementTree(ET.XML('''<site />'''))
2649 x = ET.XML("<a>foo</a>")