Exemple #1
0
bool ContentHandler::fatalError(const QXmlParseException & exception)
{
    m_result += nestPrefix();
    m_result += "fatalError(exception={columnNumber="
                + QString::number(exception.columnNumber())
                + ", lineNumber="
                + QString::number(exception.lineNumber())
                + ", publicId=\"" + escapeStr(exception.publicId())
                + "\", systemId=\"" + escapeStr(exception.systemId())
                + "\", message=\"" + escapeStr(exception.message())
                + "\"})\n";
    return TRUE;
}
Exemple #2
0
bool ContentHandler::warning(const QXmlParseException & exception)
{
    m_error_msg = QString("Warning %1:%2: %3")
                    .arg(exception.columnNumber())
                    .arg(exception.lineNumber())
                    .arg(exception.message());
    m_result += nestPrefix();
    m_result += "warning(exception={columnNumber="
		    + QString::number(exception.columnNumber())
		    + ", lineNumber="
		    + QString::number(exception.lineNumber())
		    + ", publicId=\"" + escapeStr(exception.publicId())
		    + "\", systemId=\"" + escapeStr(exception.systemId())
		    + "\", message=\"" + escapeStr(exception.message())
		    + "\"})\n";
    return TRUE;
}