parameters: (self, attrName, attrValue)
return_statement: return attr
docstring: Creates an attribute node with utf8 data inside.
          The text is escaped to an fit the xml text Format.
docstring_summary: Creates an attribute node with utf8 data inside.
          The text is escaped to an fit the xml text Format.
docstring_tokens: Creates an attribute node with utf8 data inside . The text is escaped to an fit the xml text Format .
function: 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
function_tokens: def _createAttribute ( self , attrName , attrValue ) : attr = self . __doc . createAttribute ( attrName ) if attrValue is None : attr . nodeValue = u'' else : attr . nodeValue = getUnicode ( attrValue ) return attr