IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QDomDocumentType Class

The QDomDocumentType class is the representation of the DTD in the document tree.

All functions in this class are reentrant.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QDomDocumentType Class

  • Header: QDomDocumentType

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Xml)

    target_link_libraries(mytarget PRIVATE Qt6::Xml)

  • qmake: QT += xml

  • Inherits: QDomNode

  • Group: QDomDocumentType is part of XML Classes

Detailed Description

The QDomDocumentType class allows read-only access to some of the data structures in the DTD: it can return a map of all entities() and notations(). In addition the function name() returns the name of the document type as specified in the <!DOCTYPE name> tag. This class also provides the publicId(), systemId() and internalSubset() functions.

See Also

See also QDomDocument

Member Function Documentation

 

QDomDocumentType::QDomDocumentType()

Creates an empty QDomDocumentType object.

QDomDocumentType::QDomDocumentType(const QDomDocumentType &n)

Constructs a copy of n.

The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use cloneNode().

QDomNamedNodeMap QDomDocumentType::entities() const

Returns a map of all entities described in the DTD.

QString QDomDocumentType::internalSubset() const

Returns the internal subset of the document type or an empty string if there is no internal subset.

See Also

See also publicId(), systemId()

QString QDomDocumentType::name() const

Returns the name of the document type as specified in the <!DOCTYPE name> tag.

See Also

See also nodeName()

QDomNode::NodeType QDomDocumentType::nodeType() const

Returns DocumentTypeNode.

See Also

QDomNamedNodeMap QDomDocumentType::notations() const

Returns a map of all notations described in the DTD.

QString QDomDocumentType::publicId() const

Returns the public identifier of the external DTD subset or an empty string if there is no public identifier.

See Also

QString QDomDocumentType::systemId() const

Returns the system identifier of the external DTD subset or an empty string if there is no system identifier.

See Also

QDomDocumentType &QDomDocumentType::operator=(const QDomDocumentType &n)

Assigns n to this document type.

The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use cloneNode().

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+