The XML schema editor has a built-in mechanism to handle referential integrity issues. When you delete certain nodes, clean up for any nodes affected will automatically occur.
When you define a complex type, you can add a content model to it and reference a global element.
<schema> <element name="comment" type="string"> <complexType name="Items"> <sequence> <element ref="comment"> </sequence> </complexType> </schema>
If the global element (comment) was deleted, all references to it would be in error. However, when you delete the global element, the XML schema editor will clean up using the following algorithm:
Similar cleanup operations are performed when other types of objects are deleted. The following lists describes various cleanup operations.
Deleting a global attribute will cause the following cleanup:
Deleting a complex type will cause the following cleanup:
Deleting a simple type will cause the following cleanup:
Deleting a group or attribute group will cause the following cleanup: