diff --git a/src/xercesc/parsers/AbstractDOMParser.cpp b/src/xercesc/parsers/AbstractDOMParser.cpp
index 41a4901af492de6f36ae22e8081f430a6d4d7ea0..9bb7a6c669dc4d09f8be0ee5017e5cbfa2863e7e 100644
--- a/src/xercesc/parsers/AbstractDOMParser.cpp
+++ b/src/xercesc/parsers/AbstractDOMParser.cpp
@@ -707,7 +707,7 @@ void AbstractDOMParser::startEntityReference(const XMLEntityDecl& entDecl)
     fCurrentEntity = entity;
 
     if (fCreateEntityReferenceNodes == true)
-    {        
+    {
         DOMEntityReference *er = fDocument->createEntityReference(entName);
 
         //set the readOnly flag to false before appending node, will be reset in endEntityReference
@@ -733,10 +733,7 @@ void AbstractDOMParser::XMLDecl(const   XMLCh* const version
                                 , const XMLCh* const standalone
                                 , const XMLCh* const actualEncStr)
 {
-    const XMLCh standalone_true[] = {
-            chLatin_t, chLatin_r, chLatin_u, chLatin_e, chNull
-            };
-    fDocument->setStandalone(!XMLString::compareString(standalone_true, standalone));
+    fDocument->setStandalone(!XMLString::compareString(XMLUni::fgYesString, standalone));
 
     fDocument->setVersion(version);
     fDocument->setEncoding(encoding);