home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 April / PCWorld_2001-04_cd.bin / Software / TemaCD / webclean / !!!python!!! / BeOpen-Python-2.0.exe / TEST_PYEXPAT < prev    next >
Encoding:
Text File  |  2000-09-21  |  2.6 KB  |  96 lines

  1. test_pyexpat
  2. OK.
  3. OK.
  4. OK.
  5. OK.
  6. PI:
  7.     'xml-stylesheet' 'href="stylesheet.css"'
  8. Comment:
  9.     ' comment data '
  10. Notation declared: ('notation', None, 'notation.jpeg', None)
  11. Unparsed entity decl:
  12.     ('unparsed_entity', None, 'entity.file', None, 'notation')
  13. Start element:
  14.     'root' {'attr1': 'value1', 'attr2': 'value2\341\275\200'}
  15. NS decl:
  16.     'myns' 'http://www.python.org/namespace'
  17. Start element:
  18.     'http://www.python.org/namespace!subelement' {}
  19. Character data:
  20.     'Contents of subelements'
  21. End element:
  22.     'http://www.python.org/namespace!subelement'
  23. End of NS decl:
  24.     'myns'
  25. Start element:
  26.     'sub2' {}
  27. Start of CDATA section
  28. Character data:
  29.     'contents of CDATA section'
  30. End of CDATA section
  31. End element:
  32.     'sub2'
  33. External entity ref: ('http://www.python.org/namespace=http://www.w3.org/XML/1998/namespace\014external_entity', None, 'entity.file', None)
  34. End element:
  35.     'root'
  36. PI:
  37.     u'xml-stylesheet' u'href="stylesheet.css"'
  38. Comment:
  39.     u' comment data '
  40. Notation declared: (u'notation', None, u'notation.jpeg', None)
  41. Unparsed entity decl:
  42.     (u'unparsed_entity', None, u'entity.file', None, u'notation')
  43. Start element:
  44.     u'root' {u'attr1': u'value1', u'attr2': u'value2\u1F40'}
  45. NS decl:
  46.     u'myns' u'http://www.python.org/namespace'
  47. Start element:
  48.     u'http://www.python.org/namespace!subelement' {}
  49. Character data:
  50.     u'Contents of subelements'
  51. End element:
  52.     u'http://www.python.org/namespace!subelement'
  53. End of NS decl:
  54.     u'myns'
  55. Start element:
  56.     u'sub2' {}
  57. Start of CDATA section
  58. Character data:
  59.     u'contents of CDATA section'
  60. End of CDATA section
  61. End element:
  62.     u'sub2'
  63. External entity ref: (u'http://www.python.org/namespace=http://www.w3.org/XML/1998/namespace\014external_entity', None, u'entity.file', None)
  64. End element:
  65.     u'root'
  66. PI:
  67.     u'xml-stylesheet' u'href="stylesheet.css"'
  68. Comment:
  69.     u' comment data '
  70. Notation declared: (u'notation', None, u'notation.jpeg', None)
  71. Unparsed entity decl:
  72.     (u'unparsed_entity', None, u'entity.file', None, u'notation')
  73. Start element:
  74.     u'root' {u'attr1': u'value1', u'attr2': u'value2\u1F40'}
  75. NS decl:
  76.     u'myns' u'http://www.python.org/namespace'
  77. Start element:
  78.     u'http://www.python.org/namespace!subelement' {}
  79. Character data:
  80.     u'Contents of subelements'
  81. End element:
  82.     u'http://www.python.org/namespace!subelement'
  83. End of NS decl:
  84.     u'myns'
  85. Start element:
  86.     u'sub2' {}
  87. Start of CDATA section
  88. Character data:
  89.     u'contents of CDATA section'
  90. End of CDATA section
  91. End element:
  92.     u'sub2'
  93. External entity ref: (u'http://www.python.org/namespace=http://www.w3.org/XML/1998/namespace\014external_entity', None, u'entity.file', None)
  94. End element:
  95.     u'root'
  96.