How do I omit a namespae prefix when creating an XML element.
If I perform something like
Name bodyName = envelope.createName("GetLastTradePrice", "m", "http://wombats.ztrade.com");
Name name = envelope.createName("symbol");
SOAPElement symbol = gltp.addChildElement(name);
symbol.addTextNode("SUNW")
;
the XML produced is
<m:GetLastTradePrice xmlns:m="http://wombat.ztrade.com"> <symbol>SUNW</symbol> </m:GetLastTradePrice>
If I perform
Name bodyName = envelope.createName("GetLastTradePrice", "", "http://wombats.ztrade.com");Name name = envelope.createName("symbol"); SOAPElement symbol = gltp.addChildElement(name); symbol.
addTextNode("SUNW")
; the XML produced is <m:GetLastTradePrice xmlns="http://wombat.ztrade.com"> <symbol xmlns="">SUNW</symbol> </m:GetLastTradePrice>
How do I get rid of the xmlns="" attribute Regards Jack