QXmlStreamNamespaceDeclaration#

The QXmlStreamNamespaceDeclaration class represents a namespace declaration. More

Synopsis#

Functions#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

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

class PySide6.QtCore.QXmlStreamNamespaceDeclaration#

PySide6.QtCore.QXmlStreamNamespaceDeclaration(prefix, namespaceUri)

Parameters:
  • prefix – str

  • namespaceUri – str

Creates an empty namespace declaration.

Creates a namespace declaration with prefix and namespaceUri.

PySide6.QtCore.QXmlStreamNamespaceDeclaration.namespaceUri()#
Return type:

str

Returns the namespaceUri.

PySide6.QtCore.QXmlStreamNamespaceDeclaration.__ne__(other)#
Parameters:

otherPySide6.QtCore.QXmlStreamNamespaceDeclaration

Return type:

bool

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

PySide6.QtCore.QXmlStreamNamespaceDeclaration.__eq__(other)#
Parameters:

otherPySide6.QtCore.QXmlStreamNamespaceDeclaration

Return type:

bool

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

PySide6.QtCore.QXmlStreamNamespaceDeclaration.prefix()#
Return type:

str

Returns the prefix.