'Sets node payload according to the list specified. WARNING: completely replaces all node\'s
previous content. If you wish just to add child or CDATA - use addData or addChild methods.'

def setPayload(self, payload, add=0):

    if isinstance(payload, basestring):
        payload = [payload]
    if add:
        self.kids += payload
    else:
        self.kids = payload
