Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QDomDocument::ParseResult Struct Reference

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

#include <qdom.h>

+ Collaboration diagram for QDomDocument::ParseResult:

Public Member Functions

 operator bool () const noexcept
 \variable QDomDocument::ParseResult::errorMessage
 

Public Attributes

QString errorMessage
 
qsizetype errorLine = 0
 
qsizetype errorColumn = 0
 

Detailed Description

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

Since
6.5 \inmodule QtXml

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()

Definition at line 275 of file qdom.h.

Member Function Documentation

◆ operator bool()

QDomDocument::ParseResult::operator bool ( ) const
inlineexplicitnoexcept

\variable QDomDocument::ParseResult::errorMessage

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

See also
QDomDocument::setContent()

\variable QDomDocument::ParseResult::errorLine

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

See also
QDomDocument::setContent()

\variable QDomDocument::ParseResult::errorColumn

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

See also
QDomDocument::setContent()

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

See also
QDomDocument::setContent()

Definition at line 281 of file qdom.h.

References errorMessage(), and QString::isEmpty().

+ Here is the call graph for this function:

Member Data Documentation

◆ errorColumn

qsizetype QDomDocument::ParseResult::errorColumn = 0

Definition at line 279 of file qdom.h.

Referenced by QDomBuilder::fatalError().

◆ errorLine

qsizetype QDomDocument::ParseResult::errorLine = 0

Definition at line 278 of file qdom.h.

Referenced by QDomBuilder::fatalError().

◆ errorMessage

QString QDomDocument::ParseResult::errorMessage

Definition at line 277 of file qdom.h.

Referenced by QDomBuilder::fatalError().


The documentation for this struct was generated from the following files: