Is there an option that i have to enable??? I have done the following... what
else can i do to get the list of errors... please let me know what
statements i have to add in order to get the list of errors in the
file......

LocalFileInputSource source(xsOutXMLFile_);
xercesc::XercesDOMParser *parser = new XercesDOMParser;
parser->setValidationScheme(xercesc::XercesDOMParser::Val_Auto); 
parser->setDoNamespaces(false); 
parser->setDoSchema(false);
parser->setLoadExternalDTD(true); 
parser->setSkipDTDValidation(false);                            
parser->parse(source);
DOMTreeErrorReporter *errReporter = new DOMTreeErrorReporter();
parser->setErrorHandler(errReporter);
if(parser->getErrorCount() && errReporter->getSawErrors())
{
//give a message that there are no errors in the file
}
else
{
//print out the errors
}

David Bertoni wrote:
> 
> harshabi wrote:
>> Please please tell me how to do it. I am not able to understand when to
>> call
>> the fatalerror/error method In DOMTreeErrorReporter class.
> You don't call them -- they're called by the parser when necessary.
> 
> Dave
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Writing-a-DOMTreeErrorReporter----tp16482125p16580788.html
Sent from the Xerces - C - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to