You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by "Saha, Sanjeev" <SS...@asce.org> on 2004/10/04 21:16:52 UTC
Validation of xs:any fails!
Hello!
For a simple schema as follows:
<xs:complexType name="Exception">
<xs:sequence>
<xs:element name="Message" type="xs:string"/>
<xs:any minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
The following xm fails to validate:
<Exception>
<Message>Test Exception Message</Message>
<TagName>TagMessage-2</TagName>
</Exception>
ERROR Reported:
Errors: Xml NOT valid for the following reason(s):
error: Element not allowed (strict wildcard, and no definition
found): TagName in element Exception
Has this got anything to do with the usage of <xs:any>?
-Sanjeev
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org