But if you set fgDOMValidateIfSchema to true after that, it will remove
the previous setting. Try removing the fgDOMValidateIfSchema altogether.
Alberto
David Lowndes wrote:
Try setting the property "XMLUni::fgDOMValidate" instead, to see if
that enables identity-constraint checking.
Dave,
I've already got that options set:
dc->setParameter(XMLUni::fgDOMValidate, true);
dc->setParameter(XMLUni::fgDOMNamespaces, true);
dc->setParameter(XMLUni::fgXercesSchema, true);
dc->setParameter(XMLUni::fgDOMValidateIfSchema, true);
dc->setParameter(XMLUni::fgXercesIdentityConstraintChecking, true);
MyDOMErrorHandler myErrorHandler;
dc->setParameter(XMLUni::fgDOMErrorHandler, &myErrorHandler);
m_XMLdoc = m_parser->parseURI( MyXMLFileName );
Dave Lowndes