def toDom(self, node):
wsdl = self.getWSDL()<EOL>ep = ElementProxy(None, node)<EOL>epc = ep.createAppendElement(DOM.GetWSDLUri(wsdl.version), '<STR_LIT>')<EOL>epc.setAttributeNS(None, '<STR_LIT:name>', self.name)<EOL>if self.element is not None:<EOL><INDENT>ns,name = self.element<EOL>prefix = epc.getPrefix(ns)<EOL>epc.setAttributeNS(None, '<STR_LIT>', '<STR_LIT>'%(prefix,name))<EOL><DEDENT>elif self.type is not None:<EOL><INDENT>ns,name = self.type<EOL>prefix = epc.getPrefix(ns)<EOL>epc.setAttributeNS(None, '<STR_LIT:type>', '<STR_LIT>'%(prefix,name))<EOL><DEDENT>
node -- node representing message