I'm developing an xsd that castor will generate classes from and I want to define an element sequence where two elements can either be shown together, or individually, but at least one of them must be present. This is an example of what I have been working with:
When I attempt to parse an xml file through this xsd that castor generated classes for, I get this:
The container object cannot accept the child object associated with the element 'xxx' because the container is already full!
I seem to think my xsd definition is correct and that castor is the one having problems. Has any one had luck in defining such a relationship? Thanks
SCJP 1.4 SCJD 1.5
subject: problem defining "this or that OR this and that" with Castor