Hi,
I have an XMLBeans based program for generating XML output. XML output
looks as below:
<req:getEquityAccountDetail>
<accountNumber>
<bank>651</bank>
<branch>651</branch>
<customer>0444650</customer>
<loan>0001</loan>
</accountNumber>
<productCode>LCA</productCode>
-----------
When I modify my code to filter out req namespace prefix by doing the
following.
XmlOptions op = new XmlOptions();
HashMap m=new HashMap();
m.put("","http://service.wellsfargo.com/req/"); //namespace uri for req
opts.setSaveImplicitNamespaces(m);
-----------------------------------------------------------
I am getting output as follows, which has unwanted blank namespace
references for accountNumber and ProductCode. What should I do to get rid of
these namespace references ? Why is it putting the blank namespace
references ?
<getEquityAccountDetail>
<accountNumber xmlns="">
<bank>651</bank>
<branch>651</branch>
<customer>0444650</customer>
<loan>0001</loan>
</accountNumber>
<productCode xmlns="">LCA</productCode>
You help is highly appreicated.
Thanks
--
View this message in context:
http://www.nabble.com/blank-namespace-tf2681769.html#a7480162
Sent from the Xml Beans - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]