QXmlNamePool¶
The
QXmlNamePool
class is a table of shared strings referenced by instances ofQXmlName
. More…
Detailed Description¶
QXmlNamePool
is used to optimize operations on instances ofQXmlName
. An instance ofQXmlName
represents an XML name in a way that allows the XML name to be compared and passed around efficiently. The efficiency is achieved by storing the strings comprising the XML names in an instance ofQXmlNamePool
, where they are mapped to binary identifiers, which are then packed into a key which is stored in theQXmlName
.This means that each instance of
QXmlName
is tied to the name pool it was created with, and that name pool should be kept in scope and used to create all instances ofQXmlName
that might be compared. Note also that the name pool is required if you must reconstitute theQXmlName
as text, or if you must access any of its component strings, so although instances ofQXmlName
can be compared without reference to a name pool, the name pool must be kept in scope if the name’s strings must be accessed later.See also
- class PySide2.QtXmlPatterns.QXmlNamePool¶
PySide2.QtXmlPatterns.QXmlNamePool(other)
- param other:
Constructs an empty name pool.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.