import sys
import libxml2
#memory debug specific
#
# A document hosting the nodes returned from the extension function
#
global mydoc
#
# test returning a node set works as expected
#
return [parent]
print "Failed to return a nodeset"
print "Unexpected nodeset size"
print "Unexpected nodeset element result"
print "Unexpected nodeset element children type"
print "Unexpected nodeset element children content"
#memory debug specific
print "OK"
else: