daemon/core/misc/xmlutils.py
def addparamtoparent(dom, parent, name, value):
    ''' XML helper to add a <param name="name" value="value"/> tag to the parent
    element, when value is not None.
    '''
    if value is None:
        return None
    p = dom.createElement("param")
    parent.appendChild(p)
    p.setAttribute("name", name)
    p.setAttribute("value", "%s" % value)
    return p
 XML helper to add a <param name="name" value="value"/> tag to the parent
    element, when value is not None.
    
XML helper to add a  tag to the parent
element, when value is not None.
XML helper to add a tag to the parent element when value is not None .
def addparamtoparent(dom, parent, name, value):
    if value is None:
        return None
    p = dom.createElement("param")
    parent.appendChild(p)
    p.setAttribute("name", name)
    p.setAttribute("value", "%s" % value)
    return p
def addparamtoparent ( dom , parent , name , value ) : if value is None : return None p = dom . createElement ( "param" ) parent . appendChild ( p ) p . setAttribute ( "name" , name ) p . setAttribute ( "value" , "%s" % value ) return p
XML helper to add a <param name="name" value="value"/> tag to the parent
element, when value is not None.
XML helper to add a <param name = " name " value = " value " / > tag to the parent element when value is not None .
''' XML helper to add a <param name="name" value="value"/> tag to the parent
    element, when value is not None.
    '''
dom
parent
name
value