Class around PixMap objects that allows more python-like access. By Joe Strout.
[python/dscho.git] / Lib / dos-8x3 / test_xml.py
blobeb868a370c833755f8a8ce199e37e8a4b1a44382
1 '''Test module to thest the xmllib module.
2 Sjoerd Mullender
3 '''
5 from test_support import verbose
7 testdoc = """\
8 <?xml version="1.0" encoding="UTF-8" standalone='yes' ?>
9 <!-- comments aren't allowed before the <?xml?> tag,
10 but they are allowed before the <!DOCTYPE> tag -->
11 <!DOCTYPE greeting [
12 <!ELEMENT greeting (#PCDATA)>
14 <greeting>Hello, world!</greeting>
15 """
17 import xmllib
18 if verbose:
19 parser = xmllib.TestXMLParser()
20 else:
21 parser = xmllib.XMLParser()
23 for c in testdoc:
24 parser.feed(c)
25 parser.close()