7#include <QDomImplementation>
62QDomElement element3 = document.createElement(
"MyElement");
63QDomElement element4 = document.createElement(
"MyElement");
71a.setValue(
"http://qt-project.org/doc");
122docElem.appendChild(elem);
QDomText createTextNode(const QString &data)
Creates a text node for the string value that can be inserted into the document tree,...
Q_WEAK_OVERLOAD ParseResult setContent(const QByteArray &data, ParseOptions options=ParseOption::Default)
QDomElement documentElement() const
Returns the root element of the document.
QDomElement createElement(const QString &tagName)
Creates a new element called tagName that can be inserted into the DOM tree, e.g.
QString toString(int indent=1) const
Converts the parsed document back to its textual representation.
QDomAttr attributeNode(const QString &name)
Returns the QDomAttr object that corresponds to the attribute called name.
void setAttribute(const QString &name, const QString &value)
Adds an attribute called name with value value.
QString tagName() const
Returns the tag name of this element.
static void setInvalidDataPolicy(InvalidDataPolicy policy)
QDomNode firstChild() const
Returns the first child of the node.
QDomElement toElement() const
Converts a QDomNode into a QDomElement.
bool isNull() const
Returns true if this node is null (i.e.
QDomText toText() const
Converts a QDomNode into a QDomText.
QDomNode appendChild(const QDomNode &newChild)
Appends newChild as the node's last child.
void close() override
Calls QFileDevice::flush() and closes the file.
QFILE_MAYBE_NODISCARD bool open(OpenMode flags) override
Opens the file using OpenMode mode, returning true if successful; otherwise false.
\macro QT_RESTRICTED_CAST_FROM_ASCII
QChar * data()
Returns a pointer to the data stored in the QString.
AudioChannelLayoutTag tag
GLboolean GLboolean GLboolean GLboolean a
[7]
#define qPrintable(string)
void XML_snippet_main()
[0]