components/policy/tools/template_writers/writers/xml_formatted_writer.py
def AddAttribute(self, parent, name, value):
    '''Adds a new attribute to the parent Element. If an attribute with the
    given name already exists then it will be replaced.
    '''
    doc = parent.ownerDocument
    attribute = doc.createAttribute(name)
    attribute.value = value
    parent.setAttributeNode(attribute)
Adds a new attribute to the parent Element. If an attribute with the
    given name already exists then it will be replaced.
    
Adds a new attribute to the parent Element. If an attribute with the
given name already exists then it will be replaced.
Adds a new attribute to the parent Element . If an attribute with the given name already exists then it will be replaced .
def AddAttribute(self, parent, name, value):
    doc = parent.ownerDocument
    attribute = doc.createAttribute(name)
    attribute.value = value
    parent.setAttributeNode(attribute)
def AddAttribute ( self , parent , name , value ) : doc = parent . ownerDocument attribute = doc . createAttribute ( name ) attribute . value = value parent . setAttributeNode ( attribute )
Adds a new attribute to the parent Element.
Adds a new attribute to the parent Element .
'''Adds a new attribute to the parent Element. If an attribute with the
    given name already exists then it will be replaced.
    '''
self
parent
name
value