- Contents
Interaction Designer Help
XML Get Schema
This XML tool retrieves the Schema of the given URI. It returns the node of the <Schema> tag, when the schema is an inline schema, or the schema is an external schema and the document was loaded with ‘Resolve Externals’ turned on.
This tool first checks the schema cache of the document for schemas of that namespace. If none are found, the namespace collection is checked. The namespace collection contains the namespaces used in the document and any schemas that are associated with it. The schema cache contains schemas added manually through the XML Add Schema tool.
Note: The returned Schema node is always read-only.
Inputs
Document
Node of the document to query for a Schema.
Namespace URI
Namespace URI of the Schema to retrieve.
Outputs
Schema
Node of the Schema associated with the given URI. NULL of no Schema or unknown URI.
Exit Paths
Success
This path is taken if the schema is successfully retrieved.
Unknown URI
This path is taken if the given URI is neither used in the document nor in the schema cache.
No Schema
The namespace URI is known, but there is no schema loaded for it.
Failure
This path is taken if the operation fails.