File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
PostGIS in Action
this week in the
JDBC and Relational Databases
Java Advanced Topics Training
Java in General
XML and Related Technologies
XSD: The element may not overlap error.
Paul W. Nelson
Joined: Sep 23, 2009
Sep 23, 2009 14:02:04
Wondering if anyone with more XML know-how than I can shed some light on this.
I am getting the following error when working with this section of an XSD:
The element '#Exception' may not overlap with another element
Relevant XML here:
<xsd:element name="ListResponse"> <xsd:complexType> <xsd:sequence> <xsd:choice maxOccurs="1" minOccurs="0"> <xsd:element ref="Exception" /> <xsd:element ref="MetaData" /> </xsd:choice> <xsd:choice maxOccurs="1" minOccurs="0"> <xsd:element ref="Exception" /> <xsd:element ref="ColumnStatistics" /> </xsd:choice> <xsd:choice maxOccurs="unbounded" minOccurs="0"> <xsd:element ref="Exception" /> <xsd:element ref="DomainEntity" /> </xsd:choice> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element>
Obviously it is unhappy with the Exception element being present in multiple choices. Is there a way to recode this and still preserve the intent?
I agree. Here's the link:
subject: XSD: The element may not overlap error.
need help in XSD.
JAXB unmarshal problem with XSD choice element
Problem related to XML validation using XSD
How to create arrays in WSDL
Automatically gen. code from WSDL results in XML with same tag for array and array elements
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015