[xml] Issue with DTD validation



Hi All,
                I am senthil here, memeber of xml forum.
                I face an issue with DTD validation using function xmlParseDTD.
                If any validity error occurs it gets printed in console.
                Is there any chance of capturing this error message in char format?
                Please help me out to resolve the issue.
 
Mock code:
 
cvp = xmlNewValidCtxt();
 dtd = xmlParseDTD(NULL,(const unsigned char *) DTDFILE );
 if(!xmlValidateDtd(cvp, doc, dtd))
 {
  log_message(log_file, "Log Message for XML data genearation ended\n");
  return FALSE;
 }
 
Thanks
Senthil


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]