File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Castor fail to marshal/un-marshal valid instance of sequence-of-choice schema. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Castor fail to marshal/un-marshal valid instance of sequence-of-choice schema." Watch "Castor fail to marshal/un-marshal valid instance of sequence-of-choice schema." New topic
Author

Castor fail to marshal/un-marshal valid instance of sequence-of-choice schema.

getkavya maheshwari
Greenhorn

Joined: Mar 13, 2012
Posts: 1
Hi,
I am using the castor v 0.96 to generate the castor from my XSD, XSD having the following type of contants having choice inside sequence and sequence inside some complex tag.

duing converting xml string to java business object (unmarshall). it is failing because of this structure.

After that we have gone thru below link

http://jira.codehaus.org/browse/CASTOR-1150

Which is suggesting to use the 1.2 version (castor-1.2-xml.jar) for fixing problem (sequence-of-choice structure in schema) but it is also not worked.

Suggest needful.


(Edit: code put into "Code" tags -- Paul C)

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Castor fail to marshal/un-marshal valid instance of sequence-of-choice schema.
 
Similar Threads
For all SCWCD guys : Doubts
Simple Type Inheritance
How to modify XSD that allows XML to hold the base and derived element types in any order?
Can't generate java classes from WSDL file
WDSL2Java using Axis2 via Ant in Eclipse