Registering and enabling XML schemas for decomposition
Once an annotated schema has been successfully registered and enabled for decomposition, you can use it to decompose XML documents.
- Ensure that at least one element or attribute declaration in the XML schema is annotated with an XML decomposition annotation. This annotated element or attributes must be a descendant of, or itself be, a global element of complex type.
To register and enable XML schemas for decomposition:
- Call the XSR_REGISTER stored procedure, passing in the primary schema document.
- If the XML schema consists of more than one schema document, call the XSR_ADDSCHEMADOC stored procedure for each of the schema documents that have not yet been registered.
- Call the XSR_COMPLETE stored procedure with the issuedfordecomposition parameter set to 1.
