180 {
181
182
183 char* charMsg = XMLString::transcode(toCatch.getMessage());
184 std::string msg(charMsg);
185 XMLString::release(&charMsg);
186 m_nFatal++;
187 if (!(toCatch.getSystemId()) ) {
188 std::cerr << "Fatal XML parse error: no such file "
189 << "\n Message: " << msg << "\n\n";
190 }
191 else {
192 char* charSyst = XMLString::transcode(toCatch.getSystemId());
193 std::string systemId(charSyst);
194 XMLString::release(&charSyst);
195 std::cerr << "Fatal error at file \""
196 << systemId
197 << "\", line " << toCatch.getLineNumber()
198 << ", column " << toCatch.getColumnNumber()
199 << "\n Message: " << msg << "\n\n";
200 }
201}