#!/bin/sh python < ]> """) elem = doc.getRootElement() attr = elem.hasNsProp('attr', 'http://abc.org') if attr == None or attr.serialize()[:-1] != """""": print("Failed to find defaulted attribute abc:attr") sys.exit(1) doc.freeDoc() EOF