QDomDocumentType Class

QDomDocumentType 클래스는 문서 트리에서 DTD를 표현하는 클래스입니다. 더 보기...

헤더: #include <QDomDocumentType>
CMake: find_package(Qt6 REQUIRED COMPONENTS Xml)
target_link_libraries(mytarget PRIVATE Qt6::Xml)
qmake: QT += xml
상속합니다: QDomNode

참고: 이 클래스의 모든 함수는 재진입합니다.

공용 함수

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)

상세 설명

QDomDocumentType 클래스는 DTD의 일부 데이터 구조에 대한 읽기 전용 액세스를 허용합니다: 모든 entities() 및 notations()의 맵을 반환할 수 있습니다. 또한 name() 함수는 <!DOCTYPE name> 태그에 지정된 대로 문서 유형의 이름을 반환합니다. 이 클래스는 publicId(), systemId() 및 internalSubset() 함수도 제공합니다.

QDomDocument참조하세요 .

멤버 함수 문서

QDomDocumentType::QDomDocumentType()

빈 QDomDocumentType 객체를 생성합니다.

QDomDocumentType::QDomDocumentType(const QDomDocumentType &documentType)

documentType 의 복사본을 생성합니다.

사본의 데이터는 공유됩니다(얕은 사본): 한 노드를 수정하면 다른 노드도 변경됩니다. 심층 복사본을 만들려면 cloneNode()를 사용합니다.

QDomNamedNodeMap QDomDocumentType::entities() const

DTD에 설명된 모든 엔티티의 맵을 반환합니다.

QString QDomDocumentType::internalSubset() const

문서 유형의 내부 하위 집합을 반환하거나 내부 하위 집합이 없는 경우 빈 문자열을 반환합니다.

publicId() 및 systemId()도 참조하세요 .

QString QDomDocumentType::name() const

문서 유형의 이름을 &!DOCTYPE name&'; 태그에 지정된 대로 반환합니다.

nodeName()도 참조하세요 .

QDomNode::NodeType QDomDocumentType::nodeType() const

DocumentTypeNode 를 반환합니다.

isDocumentType() 및 QDomNode::toDocumentType()도 참조하세요 .

QDomNamedNodeMap QDomDocumentType::notations() const

DTD에 설명된 모든 표기법의 맵을 반환합니다.

QString QDomDocumentType::publicId() const

외부 DTD 하위 집합의 공개 식별자 또는 공개 식별자가 없는 경우 빈 문자열을 반환합니다.

systemId(), internalSubset() 및 QDomImplementation::createDocumentType()도 참조하세요 .

QString QDomDocumentType::systemId() const

외부 DTD 하위 집합의 시스템 식별자 또는 시스템 식별자가 없는 경우 빈 문자열을 반환합니다.

publicId(), internalSubset() 및 QDomImplementation::createDocumentType()도 참조하세요 .

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

이 문서 유형에 other 을 할당합니다.

사본의 데이터는 공유됩니다(얕은 사본): 한 노드를 수정하면 다른 노드도 변경됩니다. 심층 사본을 만들려면 cloneNode()를 사용합니다.

© 2025 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.