QDomCDATASection Class
QDomCDATASection 클래스는 XML CDATA 섹션을 나타냅니다. 더 보기...
Header: | #include <QDomCDATASection> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Xml) target_link_libraries(mytarget PRIVATE Qt6::Xml) |
qmake: | QT += xml |
상속합니다: | QDomText |
- 상속된 멤버를 포함한 모든 멤버 목록
- QDomCDATASection은 XML 클래스의 일부입니다.
참고: 이 클래스의 모든 함수는 재진입됩니다.
공용 함수
QDomCDATASection() | |
QDomCDATASection(const QDomCDATASection &cdataSection) | |
QDomNode::NodeType | nodeType() const |
QDomCDATASection & | operator=(const QDomCDATASection &other) |
상세 설명
CDATA 섹션은 마크업으로 간주될 수 있는 문자가 포함된 텍스트 블록을 이스케이프 처리하는 데 사용됩니다. CDATA 섹션에서 인식되는 유일한 구분 기호는 CDATA 섹션을 종료하는 "]]>" 문자열입니다. CDATA 섹션은 중첩할 수 없습니다. 주요 목적은 모든 구분 기호를 이스케이프하지 않고도 XML 조각과 같은 자료를 포함하기 위한 것입니다.
인접한 QDomCDATASection 노드는 QDomNode::normalize() 함수에 의해 병합되지 않습니다.
문서 객체 모델에 대한 자세한 내용은 http://www.w3.org/TR/REC-DOM-Level-1/ 및 http://www.w3.org/TR/DOM-Level-2-Core/ 을 참조하세요 . DOM 구현에 대한 보다 일반적인 소개는 QDomDocument 문서를 참조하세요.
멤버 함수 문서
QDomCDATASection::QDomCDATASection()
빈 CDATA 섹션을 생성합니다. 콘텐츠가 포함된 CDATA 섹션을 만들려면 QDomDocument::createCDATASection() 함수를 사용합니다.
QDomCDATASection::QDomCDATASection(const QDomCDATASection &cdataSection)
cdataSection 의 복사본을 생성합니다.
사본의 데이터는 공유됩니다(얕은 사본): 한 노드를 수정하면 다른 노드도 변경됩니다. 심층 복사본을 만들려면 cloneNode()를 사용합니다.
QDomNode::NodeType QDomCDATASection::nodeType() const
반환값 CDATASection
.
QDomCDATASection &QDomCDATASection::operator=(const QDomCDATASection &other)
이 CDATA 섹션에 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.