Hello. I'm trying to get an XML schema working that will validate the web.config of the application is valid (user is allowed to edit it, using a WinForms app).
I've 'borrowed' the default config schema from the Visual Studio/XML/Schemas folder and am making modifications to it. I'm really only interested in editing just one section of the schema, that being... the part that defines <appSettings>.
Here's the relevant portion of the schema (with the extra stuff I don't need stripped out). <xs:element name="appSettings" vs:help="configuration/appSettings">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="add" vs:help="configuration/appSettings/add" minOccurs="1">
<xs:attribute name="key" type="xs:string" use="required" />
<xs:attribute name="value" type="xs:string" use="required" />
I want to enforce that the XML looks like this:<appSettings>
View Complete Post