5 # Memory debug specific
8 doc = libxml2.parseFile("tst.xml")
9 if doc.name != "tst.xml":
10 print "doc.name failed"
13 if root.name != "doc":
14 print "root.name failed"
17 if child.name != "foo":
18 print "child.name failed"
22 # Memory debug specific
23 libxml2.cleanupParser()
24 if libxml2.debugMemory(1) == 0:
27 print "Memory leak %d bytes" % (libxml2.debugMemory(1))