'xml-stylesheet' 'href="stylesheet.css"'
Notation declared: ('notation', None, 'notation.jpeg', None)
('unparsed_entity', None, 'entity.file', None, 'notation')
'root' {'attr1': 'value1', 'attr2': 'value2\xe1\xbd\x80'}
'myns' 'http://www.python.org/namespace'
'http://www.python.org/namespace!subelement' {}
'Contents of subelements'
'http://www.python.org/namespace!subelement'
'contents of CDATA section'
External entity ref: (None, 'entity.file', None)
u'xml-stylesheet' u'href="stylesheet.css"'
Notation declared: (u'notation', None, u'notation.jpeg', None)
(u'unparsed_entity', None, u'entity.file', None, u'notation')
u'root' {u'attr1': u'value1', u'attr2': u'value2\u1f40'}
u'myns' u'http://www.python.org/namespace'
u'http://www.python.org/namespace!subelement' {}
u'Contents of subelements'
u'http://www.python.org/namespace!subelement'
u'contents of CDATA section'
External entity ref: (None, u'entity.file', None)
u'xml-stylesheet' u'href="stylesheet.css"'
Notation declared: (u'notation', None, u'notation.jpeg', None)
(u'unparsed_entity', None, u'entity.file', None, u'notation')
u'root' {u'attr1': u'value1', u'attr2': u'value2\u1f40'}
u'myns' u'http://www.python.org/namespace'
u'http://www.python.org/namespace!subelement' {}
u'Contents of subelements'
u'http://www.python.org/namespace!subelement'
u'contents of CDATA section'
External entity ref: (None, u'entity.file', None)
Testing constructor for proper handling of namespace_separator values:
Caught expected TypeError:
ParserCreate() argument 2 must be string or None, not int
Caught expected ValueError:
namespace_separator must be at most one character, omitted, or None