To validate an XML document:
- Design the schema and test it using tools such as Stylus Studio, XML Spy, or Oxygen. Sometimes schemas are also available from external sources, such as standards bodies like FpML or ACORD.
- If the schema document contains includes or imports, consolidate it using the Schema and Stylesheet Consolidation utility.
- Insert the schema into a database table.
- Use methods on the XML type like CREATESCHEMABASEDXML or ISSCHEMAVALID to validate an XML value. Join with the table containing the schema to provide the schema to the method.
In addition, you can download sample schemas and the Schema and Stylesheet Consolidation utility from Teradata Downloads.