This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Mike Ottinger
Ranch Hand
Posts: 125
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic