code: def toDom(self, node):
          
          wsdl = self.getWSDL()
          ep = ElementProxy(None, node)
          epc = ep.createAppendElement(DOM.GetWSDLUri(wsdl.version), 'part')
          epc.setAttributeNS(None, 'name', self.name)
  
          if self.element is not None:
              ns,name = self.element
              prefix = epc.getPrefix(ns)
              epc.setAttributeNS(None, 'element', '%s:%s'%(prefix,name))
          elif self.type is not None:
              ns,name = self.type
              prefix = epc.getPrefix(ns)
              epc.setAttributeNS(None, 'type', '%s:%s'%(prefix,name))
docs: node -- node representing message