7#include <QtXml/qtxmlglobal.h>
8#include <QtCore/qstring.h>
57class QXmlStreamReader;
75 static InvalidDataPolicy invalidDataPolicy();
76 static void setInvalidDataPolicy(InvalidDataPolicy
policy);
96 EntityReferenceNode = 5,
98 ProcessingInstructionNode = 7,
101 DocumentTypeNode = 10,
102 DocumentFragmentNode = 11,
105 CharacterDataNode = 22
110 EncodingFromDocument = 1,
111 EncodingFromTextStream = 2
127 bool hasChildNodes()
const;
128 QDomNode cloneNode(
bool deep =
true)
const;
130 bool isSupported(
const QString& feature,
const QString& version)
const;
134 NodeType nodeType()
const;
145 bool hasAttributes()
const;
155 bool isCDATASection()
const;
156 bool isDocumentFragment()
const;
157 bool isDocument()
const;
158 bool isDocumentType()
const;
159 bool isElement()
const;
160 bool isEntityReference()
const;
162 bool isEntity()
const;
163 bool isNotation()
const;
164 bool isProcessingInstruction()
const;
165 bool isCharacterData()
const;
166 bool isComment()
const;
198 int lineNumber()
const;
199 int columnNumber()
const;
206 friend class ::tst_QDom;
255 QString internalSubset()
const;
273 UseNamespaceProcessing = 0x01,
274 PreserveSpacingOnlyNodes = 0x02,
284 explicit operator bool() const noexcept {
return errorMessage.isEmpty(); }
319#if QT_DEPRECATED_SINCE(6, 8)
321 bool setContent(const
QByteArray &
text,
bool namespaceProcessing,
QString *errorMsg =
nullptr,
int *errorLine =
nullptr,
int *errorColumn =
nullptr);
323 bool setContent(const
QString &
text,
bool namespaceProcessing,
QString *errorMsg =
nullptr,
int *errorLine =
nullptr,
int *errorColumn =
nullptr);
325 bool setContent(
QIODevice *dev,
bool namespaceProcessing,
QString *errorMsg =
nullptr,
int *errorLine =
nullptr,
int *errorColumn =
nullptr);
327 bool setContent(const
QByteArray &
text,
QString *errorMsg,
int *errorLine =
nullptr,
int *errorColumn =
nullptr);
329 bool setContent(const
QString &
text,
QString *errorMsg,
int *errorLine =
nullptr,
int *errorColumn =
nullptr);
331 bool setContent(
QIODevice *dev,
QString *errorMsg,
int *errorLine =
nullptr,
int *errorColumn =
nullptr);
333 bool setContent(QXmlStreamReader *reader,
bool namespaceProcessing,
QString *errorMsg =
nullptr,
334 int *errorLine =
nullptr,
int *errorColumn =
nullptr);
339 {
return setContentImpl(
data, options); }
340 ParseResult setContent(
QAnyStringView data, ParseOptions options = ParseOption::Default);
341 ParseResult setContent(
QIODevice *
device, ParseOptions options = ParseOption::Default);
342 ParseResult setContent(QXmlStreamReader *reader, ParseOptions options = ParseOption::Default);
349 ParseResult setContentImpl(
const QByteArray &
data, ParseOptions options);
452 bool specified()
const;
504 void removeAttributeNS(
const QString& nsURI,
const QString& localName);
508 bool hasAttributeNS(
const QString& nsURI,
const QString& localName)
const;
IOBluetoothDevice * device
QDomNode::NodeType nodeType() const
Returns \l{QDomNode::NodeType}{AttributeNode}.
QDomAttr & operator=(const QDomAttr &other)
Assigns other to this DOM attribute.
QDomNode::NodeType nodeType() const
Returns CDATASection.
QDomCDATASection & operator=(const QDomCDATASection &other)
Assigns other to this CDATA section.
QDomCharacterData & operator=(const QDomCharacterData &other)
Assigns other to this character data.
QDomDocumentFragment & operator=(const QDomDocumentFragment &other)
Assigns other to this DOM document fragment.
QDomNode::NodeType nodeType() const
Returns DocumentFragment.
QDomDocumentType & operator=(const QDomDocumentType &other)
Assigns other to this document type.
QDomNode::NodeType nodeType() const
Returns DocumentTypeNode.
QDomNode::NodeType nodeType() const
Returns DocumentNode.
QDomDocument & operator=(const QDomDocument &other)
Assigns other to this DOM document.
Q_WEAK_OVERLOAD ParseResult setContent(const QByteArray &data, ParseOptions options=ParseOption::Default)
void setAttribute(const QString &name, int value)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void setAttribute(const QString &name, uint value)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QDomElement & operator=(const QDomElement &other)
Assigns other to this DOM element.
void setAttributeNS(const QString &nsURI, const QString &qName, uint value)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QDomNode::NodeType nodeType() const
Returns ElementNode.
void setAttributeNS(const QString &nsURI, const QString &qName, int value)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QDomEntityReference & operator=(const QDomEntityReference &other)
Assigns other to this entity reference.
QDomNode::NodeType nodeType() const
Returns EntityReference.
QDomEntity & operator=(const QDomEntity &other)
Assigns other to this DOM entity.
QDomNode::NodeType nodeType() const
Returns EntityNode.
InvalidDataPolicy
This enum specifies what should be done when a factory function in QDomDocument is called with invali...
int size() const
This function is provided for Qt API consistency.
bool isEmpty() const
Returns true if the map is empty; otherwise returns false.
int count() const
This function is provided for Qt API consistency.
int count() const
This function is provided for Qt API consistency.
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
int size() const
This function is provided for Qt API consistency.
QDomNode at(int index) const
This function is provided for Qt API consistency.
NodeType
This enum defines the type of the node: \value ElementNode \value AttributeNode \value TextNode \valu...
QDomNotation & operator=(const QDomNotation &other)
Assigns other to this DOM notation.
QDomNode::NodeType nodeType() const
Returns NotationNode.
QDomNode::NodeType nodeType() const
Returns ProcessingInstructionNode.
QDomProcessingInstruction & operator=(const QDomProcessingInstruction &other)
Assigns other to this processing instruction.
QDomNode::NodeType nodeType() const
Returns TextNode.
QDomText & operator=(const QDomText &other)
Assigns other to this DOM text.
\inmodule QtCore \reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
static void deleteData(QBrushData *d)
constexpr bool operator!=(const timespec &t1, const timespec &t2)
Q_XML_EXPORT QTextStream & operator<<(QTextStream &stream, const QDomNode &node)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
EGLOutputLayerEXT EGLint attribute
#define Q_DECLARE_FLAGS(Flags, Enum)
static bool contains(const QJsonArray &haystack, unsigned needle)
GLenum GLuint GLenum GLsizei length
GLenum GLenum GLsizei count
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLuint GLintptr offset
static void normalize(double &x, double &y)
QQuickTextEditPrivate::Node TextNode
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
static QT_BEGIN_NAMESPACE const uint Default
static QSvgNode * createTextNode(QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
#define QT_DEPRECATED_VERSION_X_6_8(text)
static const struct QTextHtmlEntity entities[]
static QString errorMessage(QUrlPrivate::ErrorCode errorCode, const QString &errorSource, qsizetype errorPosition)
settings setValue("DataPump/bgcolor", color)
mimeData setData("text/csv", csvData)
app setAttribute(Qt::AA_DontShowIconsInMenus)
char * toString(const MyType &t)
[31]
The struct is used to store the result of QDomDocument::setContent().