Things the SOM Cannot Do
The following tasks require the use of additional methods, outside the SOM.
- The SOM cannot validate an XML instance document against a given XML Schema. You must use the validate method of the IXMLDOMDocument2 interface to perform this task. The SOM can, however, validate data types against an XML Schema item, such as an element or an attribute. The SOM does this via the isValid method of the ISchemaType interface.
- The SOM cannot modify a loaded XML Schema, or create a new XML Schema. You must use the DOM to perform these tasks. After you have made your modifications, the XML Schema can be loaded into a
SchemaCache
object to validate the XML. The SOM provides read-only access to the XML schema. - Unlike the DOM, the SOM does not provide a search method for child nodes. For information about navigating to a child element, see Finding Child Elements of Top-Level Schema Elements.