(self, attrName, attrValue)
return attr
Creates an attribute node with utf8 data inside.
        The text is escaped to an fit the xml text Format.
Creates an attribute node with utf8 data inside.
        The text is escaped to an fit the xml text Format.
Creates an attribute node with utf8 data inside . The text is escaped to an fit the xml text Format .
def _createAttribute(self, attrName, attrValue):
        '''
        Creates an attribute node with utf8 data inside.
        The text is escaped to an fit the xml text Format.
        '''
        attr = self.__doc.createAttribute(attrName)
        if attrValue is None:
            attr.nodeValue = u''
        else:
            attr.nodeValue = getUnicode(attrValue)
        return attr
def _createAttribute ( self , attrName , attrValue ) : attr = self . __doc . createAttribute ( attrName ) if attrValue is None : attr . nodeValue = u'' else : attr . nodeValue = getUnicode ( attrValue ) return attr