ss ak wrote:
Do you think i am using the right methods to validate my xml with boolean
and dates

  impl =  DOMImplementationRegistry::getDOMImplementation(X("core"));
 m_ConfigFileParser = new XercesDOMParser;
 m_ConfigFileParser->setDoSchema(true);
       m_ConfigFileParser->setValidationScheme(XercesDOMParser::Val_Never);
       m_ConfigFileParser->setDoNamespaces(true);
m_ConfigFileParser->setExternalNoNamespaceSchemaLocation("sample.xsd");
       m_ConfigFileParser->loadGrammar("sample.xsd",
Grammar::SchemaGrammarType, true);
 m_ConfigFileParser->parse("same.xml");
in this my xml does not have right date which has minoccurs=1 but it comes
out as valid doc....

right now(valid or invalid),whatever i change to xml,outcome looks the same

how do i check if my parser returned valid xml or not????????
Please take a look at the DOMPrint sample application, which shows how to detect validation errors.

Dave

Reply via email to