Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 278 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 false if any error is found by QDomDocument::setContent(); otherwise returns true.

See also
QDomDocument::setContent()

Definition at line 284 of file qdom.h.

References errorMessage().

+ Here is the call graph for this function:

Member Data Documentation

◆ errorColumn

qsizetype QDomDocument::ParseResult::errorColumn = 0

Definition at line 282 of file qdom.h.

Referenced by QDomBuilder::fatalError().

◆ errorLine

qsizetype QDomDocument::ParseResult::errorLine = 0

Definition at line 281 of file qdom.h.

Referenced by QDomBuilder::fatalError().

◆ errorMessage

QString QDomDocument::ParseResult::errorMessage

Definition at line 280 of file qdom.h.

Referenced by QDomBuilder::fatalError().


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