Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to validate xsd 1.1 in Visual Studio 2010

<xs:element name="product" type="ProductType">
<xs:alternative test="@dept='ACC'" type="AccessoryType"/>
<xs:alternative test="@dept='WMN' or @dept='MEN'"
type="ClothingType"/>



Error : The 'http://www.w3.org/2001/XMLSchema:alternative' element is not supported in this context.

What I have tried:

I have tried in visual studio 2015 but error is same.
Posted
Updated 19-May-17 7:43am

1 solution

You don't. XSD 1.1 isn't supported.

In order to use it you need either a 3rd party library, none of which are cheap or free, or write your own support for it, which isn't trivial.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900