daemon/core/misc/xmlutils.py
def addtextparamtoparent(dom, parent, name, value):
    ''' XML helper to add a <param name="name">value</param> 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)
    txt = dom.createTextNode(value)
    p.appendChild(txt)
    return p
 XML helper to add a <param name="name">value</param> tag to the parent
    element, when value is not None.
    
XML helper to add a value tag to the parent
element, when value is not None.
XML helper to add a value tag to the parent element when value is not None .
def addtextparamtoparent(dom, parent, name, value):
    if value is None:
        return None
    p = dom.createElement("param")
    parent.appendChild(p)
    p.setAttribute("name", name)
    txt = dom.createTextNode(value)
    p.appendChild(txt)
    return p
def addtextparamtoparent ( dom , parent , name , value ) : if value is None : return None p = dom . createElement ( "param" ) parent . appendChild ( p ) p . setAttribute ( "name" , name ) txt = dom . createTextNode ( value ) p . appendChild ( txt ) return p
XML helper to add a <param name="name">value</param> tag to the parent
element, when value is not None.
XML helper to add a <param name = " name " > value< / param > tag to the parent element when value is not None .
''' XML helper to add a <param name="name">value</param> tag to the parent
    element, when value is not None.
    '''
dom
parent
name
value