On top of that, when attaching sources for us to look at, please try to
attach valid and complete sources, i.e. sources that do compile and that
are self-sufficient. In your case, the test class is referencing a
sample XML document that you have not attached.
Werner
Werner Guttmann wrote:
Hi,
looking at you attachments I see *both* XML schema and a mapping file.
As such, let me ask you a question first.
Are you generating sources from the XML schema to be used with Castor
XML (for un-/marshalling) or not ? If that's the case, why are you using
a mapping file AT ALL ?
Regards
Werner
Aparajitha wrote:
Hi,
I have few mandatory tags(Userid,Statuscode,statusmessage) in
application area and few mandatory tags in datarrea of my xsd.
If I remove the mandatory tags in data area it is throwing
validation exception, but if I remove the mandatory tags in
application area , it is throwing nullpointer exception.
I want the unmarshaller to throw validation exception instead of
nullpointer exception.
Attached are the xsds, mapping files and standalone program.
Please help me to resolve this problem.
Thanks in advance
aparvatala
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email