Namespace prefix 'ns2' being added

  • From: Akhil Anil <akhil.karun@...>
  • To: users@...
  • Subject: Namespace prefix 'ns2' being added
  • Date: Wed, 18 Sep 2013 00:45:45 +0530

Hi,

I have a java object that needs to be written into an xml file.

*<sdtc:raceCode code="foo" />*

when I try to marshal and write my java object to xml it's showing an error
that

invalid content in *ns2:raceCode* it should be something else...

I guess the prefix sdtc is not read from the xsd and instead dummy prefix
ns2 is added which is obiviously not valid. What should I add to fix this
problem and make it fetch the 'sdtc' prefix. I've already added the prefix
entry in packages-info.java and the Qname is also defined.



-- 

Thanks and regards....

May God Bless us!

*AkH!L.*

*http://akhilspassion.blogspot.com*


Namespace prefix 'ns2' being added

Akhil Anil 09/17/2013

Re: Namespace prefix 'ns2' being added

Wolfgang Laun 09/17/2013
Terms of Use; Privacy Policy; Copyright ©2013-2015 (revision 20150226.965aeb8)
 
 
Close
loading
Please Confirm
Close