def getTargetNamespace(self):
parent = self<EOL>targetNamespace = '<STR_LIT>'<EOL>tns = self.attributes.get(targetNamespace)<EOL>while not tns and parent and parent._parent is not None:<EOL><INDENT>parent = parent._parent()<EOL>tns = parent.attributes.get(targetNamespace)<EOL><DEDENT>return tns or '<STR_LIT>'<EOL>
return targetNamespace