I tried a lot , but i m unable to catch execption ......  I tried with
xerces-3.0 ,...but not works ...


WORKAROUND .....You can use error handler 

         m_ConfigFileParser->setValidationScheme( XercesDOMParser::Val_Auto
);
         m_ConfigFileParser->setDoNamespaces( true );
         m_ConfigFileParser->setDoSchema( true );
         m_ConfigFileParser->setValidationSchemaFullChecking(true);
         DOMTreeErrorReporter *errReporter = new DOMTreeErrorReporter();
         m_ConfigFileParser->setErrorHandler(errReporter);

Please find files  DOMTreeErrorReporter.cpp  and DOMTreeErrorReporter.hpp 
in xerces for  better understanding .....

Thanks.................................................................................



-- 
View this message in context: 
http://www.nabble.com/Check-valid-xml-file-tp22593831p22633262.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.

Reply via email to