Identifying the root element
Because all elements within the internal spec schema are global elements, there must be a convention to define the root element within the internal schema.
For the internal schema to be valid, it must have a global element
with the same name as the spec. For example, a spec named MyExampleSpec
would include a root element definition as follows:
<?xml version='1.0' encoding='UTF-8'?>
<xsd:schema
elementFormDefault='qualified'
targetNamespace='http://www.myCompany.com/mdm/MyExampleSpec/internal/00000001'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:mdmspec='http://www.ibm.com/mdm/system/specs/mdmspec/internal/00000001'
xmlns:MyExampleSpec='http://www.myCompany.com/mdm/MyExampleSpec/internal/00000001'>
<xsd:element name="MyExampleSpec" type="MyExampleSpec:MyExampleSpecType"/>
<xsd:complexType name="MyExampleSpecType">
<xsd:sequence>
...
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
The type of the root element is always a complex type
defined in the same internal schema.