When you use the IXMLDOMDocument::loadXML method to load XML data into the MSXML parser via a string parameter, the MSXML parser does not correctly resolve any external files such as DTDs or Schemas. Script in a Web page will not suffer from this bug because MSHTML, Internet Explorer''s HTML engine, provides a valid security site object to the MSXML parser....
When you are navigating the Internet Explorer browser directly to an XML file, the XML viewer does not validate the document against its Document Type Definition (DTD) or Schema....
This article demonstrates how to apply a Document Type Definition (DTD), a Microsoft XML-Data Reduced (XDR) schema, or an XML Schema Definition Language (XSD) schema to an Extensible Markup Language (XML) document. This article also describes how to use the XmlValidatingReader class to validate an XML document against the specified grammar, as well as how to use the XmlSchemaCollection class to cache schemas in memory in order to optimize XML validation....