1

The example.xsd file contains this fragment:

<xs:override schemaLocation="../base/definitions.xsd">
    <xs:simpleType name="MessageTypeEnum">
        <xs:annotation>
            <xs:documentation>List of all message types</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:enumeration value="ACCESS_TRACKING">
                <xs:annotation>
                    <xs:documentation>See SMT type for annotation.</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
...

Running this code:

XmlSchemaSet schemas = new XmlSchemaSet 
{
    XmlResolver = new XmlUrlResolver()
};

schemas.Add("https://www.something.something.com/something", "example.xsd")

results in an error:

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

Does anyone know if a xs:override directive is supported and what needs to be done to enable that support? Looking through the documentation I have not found anything.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.