import sys
import libxml2
# Memory debug specific
class callback:
global log
global log
global log
global log
global log
global log
global log
global log
chunk = " url='tst'>b"
ctxt=None
reference = "startDocument:startElement foo {'url': 'tst'}:characters: bar:endElement foo:endDocument:"
print "Error got: %s" % log
print "Exprected: %s" % reference
# Memory debug specific
print "OK"
else: