def __init__(self,node=None):
        """ Create new empty 'reported data' field. However, note that, according XEP-0004:
            * It MUST contain one or more DataFields.
            * Contained DataFields SHOULD possess a 'type' and 'label' attribute in addition to 'var' attribute
            * Contained DataFields SHOULD NOT contain a <value/> element.
            Alternatively other XML object can be passed in as the 'node' parameted to replicate it as a new
            dataitem.
        """
        Node.__init__(self,'reported',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 'reported data' field. However, note that, according XEP-0004:
            * It MUST contain one or more DataFields.
            * Contained DataFields SHOULD possess a 'type' and 'label' attribute in addition to 'var' attribute
            * Contained DataFields SHOULD NOT contain a <value/> element.
            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