Hi I have a function to validate a xml document against a schema (xsd). This works pretty good with msxml-objects of Version 4, but not with msxml-objects of version 3. This is the code of the function: Variables: xmlSchema,Automation,‘Microsoft XML, v4.0’.DOMDocument40 xmlSchemaCache,Automation,‘Microsoft XML, v4.0’.XMLSchemaCache40 xmlDocumentTmp,Automation,‘Microsoft XML, v4.0’.DOMDocument40 XMLParseError,Automation,‘Microsoft XML, v4.0’.IXMLDOMParseError Code: CREATE(xmlSchemaCache); xmlSchemaCache.add(’’,_xmlSchema); CREATE(xmlDocumentTmp); xmlDocumentTmp.async := FALSE; xmlDocumentTmp.schemas := xmlSchemaCache; IF xmlDocumentTmp.load(_xmlDoc) THEN MESSAGE(‘validation via Schema ok’) ELSE BEGIN MESSAGE(‘validation via Schema NOT ok’); XMLParseError := xmlDocumentTmp.parseError; IF XMLParseError.errorCode <> 0 THEN BEGIN MESSAGE('Error validating via XSD\Reason: ’ + XMLParseError.reason + '\Line: ’ + FORMAT(XMLParseError.line) + ’ ’ ); END; END; With msxml3 objects I get the ffw error: “…The call to member add failed”. Ungültige Definition für das Stammelement im Schema". The error occurs on the xmlschemacache.add(…)-statement. Strange enough, one part of the error message is in german (for the english spoken it means …Invalid definition for the root element in schema"). As already mentioned, it works with many different schemas with msxml objects version 4. I actually dont want to use this version, because I dont want to bring new dll’s to the client machines. Any suggestions? Many thanks in advance Thomas