diff --git a/exist-core/src/main/java/org/exist/dom/QName.java b/exist-core/src/main/java/org/exist/dom/QName.java index 5a675c004ca..b6c0e68f8f2 100644 --- a/exist-core/src/main/java/org/exist/dom/QName.java +++ b/exist-core/src/main/java/org/exist/dom/QName.java @@ -47,7 +47,7 @@ public class QName implements Comparable { public static final QName TEXT_QNAME = EMPTY_QNAME; public static final QName COMMENT_QNAME = EMPTY_QNAME; public static final QName DOCTYPE_QNAME = EMPTY_QNAME; - + public static final QName CDATA_SECTION_QNAME = EMPTY_QNAME; private final String localPart; private final String namespaceURI; diff --git a/exist-core/src/main/java/org/exist/dom/persistent/StoredNode.java b/exist-core/src/main/java/org/exist/dom/persistent/StoredNode.java index e48c60a9307..888b1ac6eea 100644 --- a/exist-core/src/main/java/org/exist/dom/persistent/StoredNode.java +++ b/exist-core/src/main/java/org/exist/dom/persistent/StoredNode.java @@ -214,6 +214,8 @@ public QName getQName() { return QName.COMMENT_QNAME; case Node.DOCUMENT_TYPE_NODE: return QName.DOCTYPE_QNAME; + case Node.CDATA_SECTION_NODE: + return QName.CDATA_SECTION_QNAME; default: LOG.error("Unknown node type: {}", getNodeType()); return null;