Validating XSD Schema

XML validation is syntactic validation, and the XSD schema validation is semantic and structure validation.

To validate whether specific XML file follows its XSD schema, do the following:

  1. Create a dsetype.xml file, and enter the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <dsetype.xml xmlns="http://www.ibm.com/btt/dse">
        <type id="String" implClass_error="java.util.ArrayList">
            <StringDescriptor id="typeDefault">
                <param id="initialValue" value="null"/>
                <Converter convTypes="default" implClass="com.ibm.btt.base.types.ext.StringConverter"/>
                <Validator implClass="com.ibm.btt.base.types.ext.StringValidator"/>
            </StringDescriptor>
        </type>
    </dsetype.xml>
  2. Right-click the dsetype.xml, and select Validate. The BTT Validation Tool validates the file against its XSD schema and finds out that the implClass_error is not allowed to appear in the element <Type>. The BTT Validation Tool reports this error and marks the location of the error and the error text.
  3. In the Problems view, the error is also displayed. You can double-click the error, and then the error in the XML file is highlighted.