def __init__(self,node=None):
        """ Create new empty data item. However, note that, according XEP-0004, DataItem MUST contain ALL
            DataFields described in DataReported.
            Alternatively other XML object can be passed in as the 'node' parameted to replicate it as a new
            dataitem.
            """
        Node.__init__(self,'item',node=node)
        if node:
            newkids=[]
            for n in self.getChildren():
                if    n.getName()=='field': newkids.append(DataField(node=n))
                else: newkids.append(n)
            self.kids=newkids
 Create new empty data item. However, note that, according XEP-0004, DataItem MUST contain ALL
            DataFields described in DataReported.
            Alternatively other XML object can be passed in as the 'node' parameted to replicate it as a new
            dataitem.
            
chrome-cordova/gcmServer/xmpp/protocol.py