aspose file tools*
The moose likes XML and Related Technologies and the fly likes problem defining 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 "problem defining "this or that OR this and that" with Castor" Watch "problem defining "this or that OR this and that" with Castor" New topic
Author

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

Mike Ottinger
Ranch Hand

Joined: Jan 11, 2002
Posts: 125
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


SCJP 1.4 SCJD 1.5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem defining "this or that OR this and that" with Castor
 
Similar Threads
XML schema validation
.xsd schema questions
XSD element validation
How do I enforce a particular constraint in a schema
problem with schemas