ParseResult Struct

struct QDomDocument::ParseResult

The struct is used to store the result of QDomDocument::setContent(). More...

This struct was introduced in Qt 6.5.

Public Functions

bool operator bool() const

Public Variables

qsizetype errorColumn
qsizetype errorLine
QString errorMessage

Detailed Description

The QDomDocument::ParseResult struct is used for storing the result of QDomDocument::setContent(). If an error is found while parsing an XML document, the message, line and column number of an error are stored in ParseResult.

See also QDomDocument::setContent().

Member Function Documentation

[explicit] bool ParseResult::operator bool() const

Returns false if any error is found by QDomDocument::setContent(); otherwise returns true.

See also QDomDocument::setContent().

Member Variable Documentation

qsizetype ParseResult::errorColumn

The field contains the column number of an error found by QDomDocument::setContent() while parsing an XML document.

See also QDomDocument::setContent().

qsizetype ParseResult::errorLine

The field contains the line number of an error found by QDomDocument::setContent() while parsing an XML document.

See also QDomDocument::setContent().

QString ParseResult::errorMessage

The field contains the text message of an error found by QDomDocument::setContent() while parsing an XML document.

See also QDomDocument::setContent().

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.