QDomDocumentType Class
La classe QDomDocumentType rappresenta la DTD nell'albero del documento. Per saperne di più...
| Intestazione: | #include <QDomDocumentType> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Xml) target_link_libraries(mytarget PRIVATE Qt6::Xml) |
| qmake: | QT += xml |
| Eredita da: | QDomNode |
- Elenco di tutti i membri, compresi quelli ereditati
- QDomDocumentType fa parte delle classi XML.
Nota: tutte le funzioni di questa classe sono rientranti.
Funzioni pubbliche
| QDomDocumentType() | |
| QDomDocumentType(const QDomDocumentType &documentType) | |
| QDomNamedNodeMap | entities() const |
| QString | internalSubset() const |
| QString | name() const |
| QDomNode::NodeType | nodeType() const |
| QDomNamedNodeMap | notations() const |
| QString | publicId() const |
| QString | systemId() const |
| QDomDocumentType & | operator=(const QDomDocumentType &other) |
Descrizione dettagliata
La classe QDomDocumentType consente l’accesso in sola lettura ad alcune delle strutture dati presenti nel DTD: può restituire una mappa di tutti i valori di entities() e notations(). Inoltre, la funzione name() restituisce il nome del tipo di documento come specificato nel tag <!DOCTYPE name>. Questa classe fornisce anche le funzioni publicId(), systemId() e internalSubset().
Vedi anche QDomDocument.
Documentazione sulle funzioni membro
QDomDocumentType::QDomDocumentType()
Crea un oggetto QDomDocumentType vuoto.
QDomDocumentType::QDomDocumentType(const QDomDocumentType &documentType)
Crea una copia di documentType.
I dati della copia sono condivisi (copia superficiale): modificando un nodo si modificherà anche l'altro. Se si desidera effettuare una copia profonda, utilizzare cloneNode().
QDomNamedNodeMap QDomDocumentType::entities() const
Restituisce una mappa di tutte le entità descritte nel DTD.
QString QDomDocumentType::internalSubset() const
Restituisce il sottoinsieme interno del tipo di documento oppure una stringa vuota se non esiste alcun sottoinsieme interno.
Vedi anche publicId() e systemId().
QString QDomDocumentType::name() const
Restituisce il nome del tipo di documento specificato nel tag <!DOCTYPE name>.
Vedi anche nodeName().
QDomNode::NodeType QDomDocumentType::nodeType() const
Restituisce DocumentTypeNode.
Vedi anche isDocumentType() e QDomNode::toDocumentType().
QDomNamedNodeMap QDomDocumentType::notations() const
Restituisce una mappa contenente tutte le notazioni descritte nel DTD.
QString QDomDocumentType::publicId() const
Restituisce l'identificatore pubblico del sottoinsieme DTD esterno oppure una stringa vuota se non è presente alcun identificatore pubblico.
Vedi anche systemId(), internalSubset() e QDomImplementation::createDocumentType().
QString QDomDocumentType::systemId() const
Restituisce l'identificatore di sistema del sottoinsieme DTD esterno oppure una stringa vuota se non è presente alcun identificatore di sistema.
Vedi anche publicId(), internalSubset() e QDomImplementation::createDocumentType().
QDomDocumentType &QDomDocumentType::operator=(const QDomDocumentType &other)
Assegna " other " a questo tipo di documento.
I dati della copia sono condivisi (copia superficiale): la modifica di un nodo comporta la modifica anche dell'altro. Se si desidera effettuare una copia profonda, utilizzare cloneNode().
© 2026 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.