def set_attribute(self, name, val, ns=""):
        """set_attribute(name, value)
        Set the element node attribute "name" to "value".
        The name can be the shorthand identifier, or the real name.
        """
        if ":" in name:
            self._attribs[name] = POMAttribute(name, val)
            return True
        try:
            xmlattr = self.__class__.ATTRIBUTES[name]
        except KeyError:
            try:
                xmlattr = self.__class__.KWATTRIBUTES[name]
            except __HOLE__:
                return False
        self._attribs[xmlattr.name] = POMAttribute(xmlattr.name, val, ns)
        return True
dataset/ETHPy150Open kdart/pycopia/XML/pycopia/XML/POM.py/ElementNode.set_attribute