def checkNode(self, namespaceURI=None, localName=None):
namespaceURI = namespaceURI or self.namespaceURI<EOL>localName = localName or self.name<EOL>check = False<EOL>if localName and self.node:<EOL><INDENT>check = self._dom.isElement(self.node, localName, namespaceURI)<EOL><DEDENT>if not check:<EOL><INDENT>raise NamespaceError('<STR_LIT>' %(self.node, localName))<EOL><DEDENT>
namespaceURI -- namespace of element
localName -- local name of element