Using the XML Schema Structures Page
The Interoperability > Interoperate > XML > XML Schema Structures page enables you to import and view XML schema specifications when using XML documents as virtual documents.
For general information on using this page, see Using the Schema Structures Page.
You can use these schemas only to support processing of XML virtual documents. InterSystems IRIS does not use them for any other purpose.
Before importing a schema file, rename it so that its name is informative and unique within this namespace. The filename is used as the schema category name in the Management Portal and elsewhere. If the filename ends with the file extension .xsd, the file extension is omitted from the schema category name. Otherwise the file extension is included in the name.
After importing a schema file, do not remove the file from its current location in the file system. When processing XML virtual documents, the XML parser uses the schema file rather than the schema stored in the InterSystems IRIS database.
Also note:
-
When reading XML documents, InterSystems IRIS removes the XML declaration, all processing instructions, and all comments.
-
If the name of an element or attribute includes a period (.), InterSystems IRIS replaces that with a tilde (~).
For example, an XML element named My.Element appears as My~Element in InterSystems IRIS.
-
InterSystems IRIS does not support XML schemas in which an element is defined via a reference (ref) to a type in the schema. Instead of ref, use type. For example, consider the following fragment of a schema:
<xs:element name="test1" ref="sometype"></xs:element> <xs:element name="test2" type="sometype"></xs:element>When this schema is imported, the element test1 will not be fully defined, because this form of top-level element definition is not supported. The schema viewer, for example, will not show the full element type for test1. In contrast, test2 will appear in the schema as expected.
This limitation applies only to schemas used with XML virtual documents