This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem defining "this or that OR this and that" with Castor  RSS feed

Mike Ottinger
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!