xml spy
Previous  Top  Next

Extended Validation


XMLSpy, in conjunction with SchemaAgent, allows you to validate not only the currently active schema but also schemas related to the currently active schema. There are two types of related schemas that SchemaAgent distinguishes for extended validation: (i) directly referenced schemas, and (ii) referenced schemas. 

 

How to carry out extended validation is demonstrated below by means of an example. This example assumes that the schema file address.xsd is the active schema in Schema/WSDL View of XMLSpy. You would then do the following:

 

1.Click the Extended Validation icon ic-ext-validate2 in the toolbar or the menu item Schema Design | Extended Validation. This opens the Extended Validation dialog box, in which you can choose whether to validate the active schema only or one or more related schemas as well.

 

saspy_ext_validate_1

 

2.To insert schemas into the list, click the Show Directly Referenced or Show All Referenced button as required. In this example, we have clicked the Show All Referenced button, and this inserts all referenced files into the list.

 

       saspy_ext_validate_2

 

At this point, you can remove a schema from the list (Remove from List).

3.Click the Validate button to validate all the schemas in the list box.

 

       saspy_ext_validate_results

 

The Validate column displays whether the validation was successful or whether it failed.

 

You can now open the schemas that failed validation or a set of selected schemas in XMLSpy.

 


Previous  Top  Next

© 2008 Altova