OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   MSXML and the "<any>" tag in XML Schemas

[ Lists Home | Date Index | Thread Index ]

Hi folks,

I'm curious to see if anyone has seen this problem before, and if they have a fix.

I am constrained to using MSXML2.4.0 for my XML schema validating needs.

I am trying to make my schema extensible with the use of the "<any>" tag, but I keep getting an error that says that the schema is non-deterministic.

I have tried using the namespace="##other" attribute of the "<any>" tag to try to prevent this, however, this does not seem to work.

So far the only thing that seems to work is if I create an element, in which the "<any>" tag is the only child.

If anyone has seen this problem before, and knows how to get around it, please let me know.

ex.

<xs:element name="MyElement">
	<xs:complexType>
		<xs:sequence>
			<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="SomeChildElement" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="SomeOtherChild"/>
		</xs:sequence>
	</xs:complexType>
</xs:element>

thanx in advance for your help.

Chris Strolia-Davis
Database Specialist
Contractor - CDO Technologies Inc.




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS