Java Mailing List Archive

http://www.junlu.com/

Home » user.castor »

[castor-user] Namespace during unmarshal

Sam-1234

2010-02-13

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi-
I am facing issue during unmarshalling if the namespaces declared are not
used in the xml.
here is my sample xml
<ns3:response xmlns:ns1="www.aaa.com/ns1"
 xmlns:ns2="www.test.com/ns2"
 xmlns:ns3="www.testing.com/ns3">
<ns3:Res>
  <A1>
 <B1>
  <node1>A</node1>
  <node2>B</node2>
    </B1>
 </A1>
</ns3:Res>

If I remove ns2,ns1 and do unmarshal,it works fine.I understand if namespace
are used they wil
be part of the document and castor may use it.Is there any way to avoid
unused namespaces during unmarshalling?

Thanks,
Sam
--
Sent from the Castor - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 junlu.com - Jax Systems, LLC, U.S.A.