2000-03-31 11:45:20 -04:00
|
|
|
test_pyexpat
|
2000-09-21 17:32:13 -03:00
|
|
|
OK.
|
|
|
|
OK.
|
|
|
|
OK.
|
|
|
|
OK.
|
2000-03-31 11:45:20 -04:00
|
|
|
PI:
|
2000-06-26 21:37:25 -03:00
|
|
|
'xml-stylesheet' 'href="stylesheet.css"'
|
2000-03-31 11:45:20 -04:00
|
|
|
Comment:
|
|
|
|
' comment data '
|
|
|
|
Notation declared: ('notation', None, 'notation.jpeg', None)
|
|
|
|
Unparsed entity decl:
|
|
|
|
('unparsed_entity', None, 'entity.file', None, 'notation')
|
|
|
|
Start element:
|
2000-06-26 21:37:25 -03:00
|
|
|
'root' {'attr1': 'value1', 'attr2': 'value2\341\275\200'}
|
2000-03-31 11:45:20 -04:00
|
|
|
NS decl:
|
2000-06-26 21:37:25 -03:00
|
|
|
'myns' 'http://www.python.org/namespace'
|
2000-03-31 11:45:20 -04:00
|
|
|
Start element:
|
2000-06-26 21:37:25 -03:00
|
|
|
'http://www.python.org/namespace!subelement' {}
|
2000-03-31 11:45:20 -04:00
|
|
|
Character data:
|
|
|
|
'Contents of subelements'
|
|
|
|
End element:
|
2000-06-26 21:37:25 -03:00
|
|
|
'http://www.python.org/namespace!subelement'
|
2000-03-31 11:45:20 -04:00
|
|
|
End of NS decl:
|
2000-06-26 21:37:25 -03:00
|
|
|
'myns'
|
2000-03-31 11:45:20 -04:00
|
|
|
Start element:
|
2000-06-26 21:37:25 -03:00
|
|
|
'sub2' {}
|
2000-03-31 11:45:20 -04:00
|
|
|
Start of CDATA section
|
|
|
|
Character data:
|
|
|
|
'contents of CDATA section'
|
|
|
|
End of CDATA section
|
|
|
|
End element:
|
2000-06-26 21:37:25 -03:00
|
|
|
'sub2'
|
2000-12-23 18:12:07 -04:00
|
|
|
External entity ref: (None, 'entity.file', None)
|
2000-03-31 11:45:20 -04:00
|
|
|
End element:
|
2000-06-26 21:37:25 -03:00
|
|
|
'root'
|
|
|
|
PI:
|
|
|
|
u'xml-stylesheet' u'href="stylesheet.css"'
|
|
|
|
Comment:
|
|
|
|
u' comment data '
|
|
|
|
Notation declared: (u'notation', None, u'notation.jpeg', None)
|
|
|
|
Unparsed entity decl:
|
|
|
|
(u'unparsed_entity', None, u'entity.file', None, u'notation')
|
|
|
|
Start element:
|
|
|
|
u'root' {u'attr1': u'value1', u'attr2': u'value2\u1F40'}
|
|
|
|
NS decl:
|
|
|
|
u'myns' u'http://www.python.org/namespace'
|
|
|
|
Start element:
|
|
|
|
u'http://www.python.org/namespace!subelement' {}
|
|
|
|
Character data:
|
|
|
|
u'Contents of subelements'
|
|
|
|
End element:
|
|
|
|
u'http://www.python.org/namespace!subelement'
|
|
|
|
End of NS decl:
|
|
|
|
u'myns'
|
|
|
|
Start element:
|
|
|
|
u'sub2' {}
|
|
|
|
Start of CDATA section
|
|
|
|
Character data:
|
|
|
|
u'contents of CDATA section'
|
|
|
|
End of CDATA section
|
|
|
|
End element:
|
|
|
|
u'sub2'
|
2000-12-23 18:12:07 -04:00
|
|
|
External entity ref: (None, u'entity.file', None)
|
2000-06-26 21:37:25 -03:00
|
|
|
End element:
|
|
|
|
u'root'
|
|
|
|
PI:
|
|
|
|
u'xml-stylesheet' u'href="stylesheet.css"'
|
|
|
|
Comment:
|
|
|
|
u' comment data '
|
|
|
|
Notation declared: (u'notation', None, u'notation.jpeg', None)
|
|
|
|
Unparsed entity decl:
|
|
|
|
(u'unparsed_entity', None, u'entity.file', None, u'notation')
|
|
|
|
Start element:
|
|
|
|
u'root' {u'attr1': u'value1', u'attr2': u'value2\u1F40'}
|
|
|
|
NS decl:
|
|
|
|
u'myns' u'http://www.python.org/namespace'
|
|
|
|
Start element:
|
|
|
|
u'http://www.python.org/namespace!subelement' {}
|
|
|
|
Character data:
|
|
|
|
u'Contents of subelements'
|
|
|
|
End element:
|
|
|
|
u'http://www.python.org/namespace!subelement'
|
|
|
|
End of NS decl:
|
|
|
|
u'myns'
|
|
|
|
Start element:
|
|
|
|
u'sub2' {}
|
|
|
|
Start of CDATA section
|
|
|
|
Character data:
|
|
|
|
u'contents of CDATA section'
|
|
|
|
End of CDATA section
|
|
|
|
End element:
|
|
|
|
u'sub2'
|
2000-12-23 18:12:07 -04:00
|
|
|
External entity ref: (None, u'entity.file', None)
|
2000-06-26 21:37:25 -03:00
|
|
|
End element:
|
|
|
|
u'root'
|
2000-12-23 18:12:07 -04:00
|
|
|
|
|
|
|
Testing constructor for proper handling of namespace_separator values:
|
|
|
|
Legal values tested o.k.
|
|
|
|
Caught expected TypeError:
|
|
|
|
ParserCreate, argument 2: expected string or None, int found
|
|
|
|
Caught expected ValueError:
|
|
|
|
namespace_separator must be one character, omitted, or None
|
|
|
|
Caught expected ValueError:
|
|
|
|
namespace_separator must be one character, omitted, or None
|