38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# this tests the entities substitutions with the XmlTextReader interface
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# Memory debug specific
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# Parse a document testing the Close() API
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync<label>some text</label>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync<item>100</item>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncreader = libxml2.readerForDoc(docstr, "test1", None, 0)
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync print "Error closing the document test1"
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# Memory debug specific
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync print "Memory leak %d bytes" % (libxml2.debugMemory(1))