7 'xml-stylesheet' 'href="stylesheet.css"'
10 Notation declared: ('notation', None, 'notation.jpeg', None)
12 ('unparsed_entity', None, 'entity.file', None, 'notation')
14 'root' {'attr1': 'value1', 'attr2': 'value2\xe1\xbd\x80'}
16 'myns' 'http://www.python.org/namespace'
18 'http://www.python.org/namespace!subelement' {}
20 'Contents of subelements'
22 'http://www.python.org/namespace!subelement'
27 Start of CDATA section
29 'contents of CDATA section'
33 External entity ref: (None, 'entity.file', None)
37 u'xml-stylesheet' u'href="stylesheet.css"'
40 Notation declared: (u'notation', None, u'notation.jpeg', None)
42 (u'unparsed_entity', None, u'entity.file', None, u'notation')
44 u'root' {u'attr1': u'value1', u'attr2': u'value2\u1f40'}
46 u'myns' u'http://www.python.org/namespace'
48 u'http://www.python.org/namespace!subelement' {}
50 u'Contents of subelements'
52 u'http://www.python.org/namespace!subelement'
57 Start of CDATA section
59 u'contents of CDATA section'
63 External entity ref: (None, u'entity.file', None)
67 u'xml-stylesheet' u'href="stylesheet.css"'
70 Notation declared: (u'notation', None, u'notation.jpeg', None)
72 (u'unparsed_entity', None, u'entity.file', None, u'notation')
74 u'root' {u'attr1': u'value1', u'attr2': u'value2\u1f40'}
76 u'myns' u'http://www.python.org/namespace'
78 u'http://www.python.org/namespace!subelement' {}
80 u'Contents of subelements'
82 u'http://www.python.org/namespace!subelement'
87 Start of CDATA section
89 u'contents of CDATA section'
93 External entity ref: (None, u'entity.file', None)
97 Testing constructor for proper handling of namespace_separator values:
98 Legal values tested o.k.
99 Caught expected TypeError:
100 ParserCreate() argument 2 must be string or None, not int
101 Caught expected ValueError:
102 namespace_separator must be one character, omitted, or None
103 Caught expected ValueError:
104 namespace_separator must be one character, omitted, or None