From fa2bff375e54ca2d10d04ae79e117d1528f6d36e Mon Sep 17 00:00:00 2001
From: Tinny Ng <tng@apache.org>
Date: Thu, 6 Jun 2002 21:02:17 +0000
Subject: [PATCH] DOM L3: Remove XML_DECL type.

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@173806 13f79535-47bb-0310-9956-ffa450edef68
---
 src/xercesc/dom/DOMNode.hpp              | 3 +--
 src/xercesc/dom/impl/DOMDocumentImpl.cpp | 6 ++----
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/xercesc/dom/DOMNode.hpp b/src/xercesc/dom/DOMNode.hpp
index bd0d4337b..95ca71941 100644
--- a/src/xercesc/dom/DOMNode.hpp
+++ b/src/xercesc/dom/DOMNode.hpp
@@ -226,8 +226,7 @@ public:
         DOCUMENT_NODE               = 9,
         DOCUMENT_TYPE_NODE          = 10,
         DOCUMENT_FRAGMENT_NODE      = 11,
-        NOTATION_NODE               = 12,
-        XML_DECL_NODE               = 13
+        NOTATION_NODE               = 12
     };
     //@}
 
diff --git a/src/xercesc/dom/impl/DOMDocumentImpl.cpp b/src/xercesc/dom/impl/DOMDocumentImpl.cpp
index 98d79b88a..7526ee4d3 100644
--- a/src/xercesc/dom/impl/DOMDocumentImpl.cpp
+++ b/src/xercesc/dom/impl/DOMDocumentImpl.cpp
@@ -770,8 +770,7 @@ bool DOMDocumentImpl::isKidOK(DOMNode *parent, DOMNode *child)
               1 << DOMNode::ELEMENT_NODE |
               1 << DOMNode::PROCESSING_INSTRUCTION_NODE |
               1 << DOMNode::COMMENT_NODE |
-              1 << DOMNode::DOCUMENT_TYPE_NODE |
-              1 << DOMNode::XML_DECL_NODE;
+              1 << DOMNode::DOCUMENT_TYPE_NODE;
 
           kidOK[DOMNode::DOCUMENT_FRAGMENT_NODE] =
               kidOK[DOMNode::ENTITY_NODE] =
@@ -782,8 +781,7 @@ bool DOMDocumentImpl::isKidOK(DOMNode *parent, DOMNode *child)
               1 << DOMNode::COMMENT_NODE |
               1 << DOMNode::TEXT_NODE |
               1 << DOMNode::CDATA_SECTION_NODE |
-              1 << DOMNode::ENTITY_REFERENCE_NODE |
-              1 << DOMNode::XML_DECL_NODE;
+              1 << DOMNode::ENTITY_REFERENCE_NODE;
 
           kidOK[DOMNode::ATTRIBUTE_NODE] =
               1 << DOMNode::TEXT_NODE |
-- 
GitLab