QXmlStreamNamespaceDeclaration Class

The QXmlStreamNamespaceDeclaration class represents a namespace declaration. More...

Header: #include <QXmlStreamNamespaceDeclaration>

Public Functions

QXmlStreamNamespaceDeclaration()
QXmlStreamNamespaceDeclaration(const QString &prefix, const QString &namespaceUri)
QStringView namespaceUri() const
QStringView prefix() const
bool operator!=(const QXmlStreamNamespaceDeclaration &other) const
bool operator==(const QXmlStreamNamespaceDeclaration &other) const

Detailed Description

\inmoduleQtCore \since 4.3 \reentrant

\ingroupxml-tools

An namespace declaration consists of a prefix() and a namespaceUri().

Member Function Documentation

QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration()

Creates an empty namespace declaration.

QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration(const QString &prefix, const QString &namespaceUri)

\since4.4

Creates a namespace declaration with prefix and namespaceUri.

QStringView QXmlStreamNamespaceDeclaration::namespaceUri() const

Returns the namespaceUri.

QStringView QXmlStreamNamespaceDeclaration::prefix() const

Returns the prefix.

bool QXmlStreamNamespaceDeclaration::operator!=(const QXmlStreamNamespaceDeclaration &other) const

Compares this namespace declaration with other and returns true if they are not equal; otherwise returns false.

bool QXmlStreamNamespaceDeclaration::operator==(const QXmlStreamNamespaceDeclaration &other) const

Compares this namespace declaration with other and returns true if they are equal; otherwise returns false.

Related Non-Members

QXmlStreamNamespaceDeclarations

Synonym for QList<QXmlStreamNamespaceDeclaration>.