encoding: In BinaryXmlDecoder peekDTag, should check for CLOSE, not hard-coded 0.
diff --git a/src/c/encoding/binary-xml-decoder.c b/src/c/encoding/binary-xml-decoder.c
index eab5cdf..6a20e94 100644
--- a/src/c/encoding/binary-xml-decoder.c
+++ b/src/c/encoding/binary-xml-decoder.c
@@ -120,7 +120,7 @@
   // First check if it is an element close (which cannot be the expected tag).  
   if (self->offset >= self->inputLength)
     return NDN_ERROR_read_past_the_end_of_the_input;
-  if (unsafeGetOctet(self) == 0)
+  if (unsafeGetOctet(self) == ndn_BinaryXml_CLOSE)
     return NDN_ERROR_success;
 
   unsigned int type;