Exemplo n.º 1
0
void ParserErrorHandler::reportParseException(const xercesc::SAXParseException &spExept)
{
    char *message = xercesc::XMLString::transcode(spExept.getMessage());

    std::cerr << " at line " << spExept.getLineNumber() << ", column " << spExept.getColumnNumber() <<":\n" << message <<std::endl;

    xercesc::XMLString::release(&message);
}
Exemplo n.º 2
0
void ConfigurationManager::warning(const xercesc::SAXParseException& e)
{
   std::ostringstream errStrm;
   dtUtil::XMLStringConverter sysIDConverter(e.getSystemId());
   dtUtil::XMLStringConverter msgConverter(e.getMessage());

   errStrm << "\nWarning at file " << sysIDConverter.ToString()
      << ", line " << e.getLineNumber()
      << ", char " << e.getColumnNumber()
      << "\n  Message: " << msgConverter.ToString() << "\n";

   dtUtil::Log::GetInstance().LogMessage(dtUtil::Log::LOG_WARNING, __FUNCTION__,
      __LINE__, errStrm.str());
}