Thanks for your reply, Alberto. Please note I am using the DOM Level 3 DOMBuilder class, which does not have setValidationScheme() method. According to the DOMCount sample this should correspond to the XMLUni::fgDOMValidation feature - which I am setting to true.
To clarify I am setting these features in the following order: parser->setFeature(XMLUni::fgDOMNamespaces, true); parser->setFeature(XMLUni::fgDOMValidation, true); parser->setFeature(XMLUni::fgXercesSchema, true); parser->setFeature(XMLUni::fgXercesSchemaFullChecking, true); parser->setFeature(XMLUni::fgXercesValidationErrorAsFatal, true); // parser->loadGrammar( Wrapper4InputSource(&XsdInputSrc, false), parser->setFeature(XMLUni::fgXercesUseCachedGrammarInParse, true); I also tried changing the order of 'fgDOMValidation', but that didn't seem to affect things > Hi Matthew, > have you tried to set the validation to "always"? The default value > ("auto") will activate schema validation only if the root element has the > xsi:noNamespaceSchemaLocation attribute. > > Alberto --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]