#
# this test exercise the XPath basic engine, parser, etc, and
# allows to detect memory leaks
#
import sys
import libxml2
instance="""<?xml version="1.0"?>
<tag xmlns:foo='urn:foo' xmlns:bar='urn:bar' xmlns:baz='urn:baz' />"""
while n:
yield n
n = n.next
#print nsList
# Memory debug specific
# Remove single namespace
ns.freeNsList()
# Remove all namespaces
ns.freeNsList()
# Remove a namespace refered to by a child
# Memory debug specific
print "OK"
else: