You can check how you download. This is sample code from the Windows / MSXML SDK:
IXMLDOMSchemaCollectionPtr pXS;
IXMLDOMDocument2Ptr pXD = NULL;
IXMLDOMParseErrorPtr pErr = NULL;
_bstr_t strResult = "";
HRESULT hr = pXS.CreateInstance(__uuidof(XMLSchemaCache50));
hr = pXS->add("urn:namespace", "myschema.xsd");
hr = pXD.CreateInstance(__uuidof(DOMDocument50));
pXD->schemas = pXS.GetInterfacePtr();
pXD->async = VARIANT_FALSE;
pXD->validateOnParse = VARIANT_TRUE;
pXD->resolveExternals = VARIANT_TRUE;
hr = pXD->load("TheXmlDocument.xml");
You can download the MSXML6 SDK to get this sample and many more. Note. It will not be installed on Vista. If you run Vista, you will get the Windows SDK .
source
share