Lines Matching refs:XML
269 self.assertEqual(ET.XML, ET.fromstring)
302 elem = ET.XML("<body><tag/></body>")
343 self.serialize_check(ET.XML("<tag>hello</tag>"),
345 self.serialize_check(ET.XML("<tag>hello</tag>"),
347 self.serialize_check(ET.XML("<tag><![CDATA[hello]]></tag>"),
366 elem = ET.XML(SAMPLE_XML)
380 e1 = ET.XML("<tag>hello<foo/></tag>")
510 element = ET.XML("<html><body>text</body></html>")
763 elem = ET.XML(SAMPLE_XML)
781 elem = ET.XML("<html><body>text</body></html>")
787 elem = ET.XML("<root></root>")
791 elem = ET.XML("<html><body>text</body></html>")
795 elem = ET.XML("<html> <body>text</body> </html>")
799 elem = ET.XML("<html><body>text</body>tail</html>")
803 elem = ET.XML("<html><body><p>par</p>\n<p>text</p>\t<p><br/></p></body></html>")
818 elem = ET.XML("<html><body><p>pre<br/>post</p><p>text</p></body></html>")
831 elem = ET.XML("<html><body><p>pre<br/>post</p><p>text</p></body></html>")
843 elem = ET.XML("<html><body><p>pre<br/>post</p><p>text</p></body></html>")
856 elem = ET.XML("<html><body><p>par</p><p>text</p><p><br/></p><p /></body></html>")
872 elem = ET.XML("<html><body><p>pre<br/>post</p><p>text</p></body></html>")
891 elem = ET.XML("<html><body><p>pre<br/>post</p><p>text</p></body></html>")
904 elem = ET.XML('<body xmlns="http://effbot.org/ns"><tag/></body>')
915 elem = ET.XML('<body xmlns="http://effbot.org/ns"><tag/></body>')
922 elem = ET.XML('<body><tag/></body>')
928 elem = ET.XML('<body><tag/></body>')
935 elem = ET.XML('<body><tag/></body>')
942 elem = ET.XML('<body><tag/></body>')
950 elem = ET.XML('<body><tag>ø</tag></body>')
995 elem = ET.XML('<body xmlns="http://effbot.org/ns"><tag/></body>')
1006 elem = ET.XML('<body><tag/></body>')
1029 self.assertEqual(ET.XML(xml.encode(encoding)).text, body)
1030 self.assertEqual(ET.XML(xml).text, body)
1060 self.assertEqual(ET.tostring(ET.XML(bxml(encoding))), b'<xml />')
1072 self.assertRaises(ValueError, ET.XML, bxml(encoding))
1079 self.assertRaises(ET.ParseError, ET.XML, bxml(encoding))
1081 self.assertRaises(ValueError, ET.XML, xml('undefined').encode('ascii'))
1082 self.assertRaises(LookupError, ET.XML, xml('xxx').encode('ascii'))
1087 e = ET.XML("<html><link/><script>1 < 2</script></html>")
1100 e = ET.XML('<html><CamelCase>text</CamelCase></html>')
1111 e = ET.XML("<document title='舰'>test</document>")
1119 ET.XML("<document>&entity;</document>")
1124 ET.XML(ENTITY_XML)
1139 ET.XML(EXTERNAL_ENTITY_XML)
1148 elem = ET.XML("<tag xml:lang='en' />")
1153 elem = ET.XML("<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' />")
1157 elem = ET.XML("<html:html xmlns:html='http://www.w3.org/1999/xhtml' />")
1161 elem = ET.XML("<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope' />")
1166 elem = ET.XML(SAMPLE_XML_NS)
1244 elem = ET.XML('<!DOCTYPE html PUBLIC'
1330 serialized = serialize(ET.XML('<%s />' % elem), method='html')
1332 serialized = serialize(ET.XML('<%s></%s>' % (elem,elem)),
1736 data = ET.XML(data)
1840 document = ET.XML(XINCLUDE["C1.xml"])
1847 document = ET.XML(XINCLUDE["C2.xml"])
1854 document = ET.XML(XINCLUDE_BAD["B1.xml"])
1861 document = ET.XML(XINCLUDE_BAD["B2.xml"])
1943 elem = ET.XML(SAMPLE_XML)
1951 tree = ET.XML("<doc><table><tbody/></table></doc>")
1958 tree = ET.XML("<doc><table><tbody/></table></doc>")
1966 tree = ET.XML(b"<?xml version='1.0' encoding='iso-8859-1'?><t\xe4g />")
1969 tree = ET.XML(b"<?xml version='1.0' encoding='iso-8859-1'?>"
1975 tree = ET.XML(b"<?xml version='1.0' encoding='iso-8859-1'?>"
1991 e = ET.XML("<!DOCTYPE doc [<!ENTITY ldots '舰'>]>"
2001 ET.XML(b"<!DOCTYPE doc SYSTEM 'doc.dtd'>"
2053 self.assertEqual(ET.XML(ET.tostring(e)).get("text"),
2055 self.assertEqual(ET.tostring(ET.XML(ET.tostring(e))),
2151 e = ET.XML(b"<?xml version='1.0' encoding='utf-8'?>"
2156 e = ET.XML(b"<?xml version='1.0' encoding='iso-8859-1'?>"
2163 e = ET.XML('<prefix:localname xmlns:prefix="${stuff}"/>')
2169 elem = ET.XML("<body><tag/></body>")
2171 newelem = ET.XML(SAMPLE_XML)
2235 root = ET.XML(xml)
2774 e = ET.XML(SAMPLE_XML)
2779 e[2] = ET.XML(SAMPLE_SECTION)
2794 self.assertEqual(ET.XML('<tag><empty /></tag>').findtext('empty'), '')
2804 e = ET.XML(LINEAR_XML)
2819 e = ET.XML(SAMPLE_XML)
2820 e[2] = ET.XML(SAMPLE_SECTION)
2896 e = ET.XML(SAMPLE_XML_NS)
2906 root = ET.XML('''
2923 root = ET.XML('''
2967 e = ET.XML(SAMPLE_XML)
2972 e = ET.XML(SAMPLE_XML)
2991 doc = ET.XML("<html><body>this is a <i>paragraph</i>.</body>..</html>")
3014 doc = ET.XML("<root>a&<sub>b&</sub>c&</root>")
3040 doc = ET.XML('''
3645 tree = ET.ElementTree(ET.XML('''<site />'''))
3652 tree = ET.ElementTree(ET.XML('''<site />'''))
3661 tree = ET.ElementTree(ET.XML('''<site />'''))
3670 tree = ET.ElementTree(ET.XML('''<site />'''))
3695 tree = ET.ElementTree(ET.XML('''<site />'''))
3707 tree = ET.ElementTree(ET.XML('''<site />'''))
3724 tree = ET.ElementTree(ET.XML('''<site />'''))
3741 tree = ET.ElementTree(ET.XML('''<site />'''))
3749 tree = ET.ElementTree(ET.XML('''<site />'''))
3807 x = ET.XML("<a>foo</a>")