Fully use enum
diff --git a/tinyxml2.cpp b/tinyxml2.cpp
index a645c57..0d6e2bc 100755
--- a/tinyxml2.cpp
+++ b/tinyxml2.cpp
@@ -1449,7 +1449,7 @@
 

 // --------- XMLElement ---------- //

 XMLElement::XMLElement( XMLDocument* doc ) : XMLNode( doc ),

-    _closingType( 0 ),

+    _closingType( OPEN ),

     _rootAttribute( 0 )

 {

 }

@@ -1868,7 +1868,7 @@
     }

 

     p = ParseAttributes( p, curLineNumPtr );

-    if ( !p || !*p || _closingType ) {

+    if ( !p || !*p || _closingType != OPEN ) {

         return p;

     }