Formatting.
[SXSI/XMLTree.git] / xml-tree-builder.cpp
index 19ce5dc..f0c788f 100644 (file)
@@ -1,5 +1,6 @@
 #include "xml-tree-builder.hpp"
 #include <stdexcept>
+#include <cstdio>
 #include <utility>
 
 using namespace SXSI;
@@ -80,9 +81,12 @@ xml_tree_builder::open_document(bool disable_text_index,
   register_tag(xml_tree::ATTRIBUTE_DATA_OPEN_TAG,
                xml_tree::ATTRIBUTE_DATA_OPEN_TAG_ID);
 
+  register_tag(xml_tree::CLOSE_TAG,
+               xml_tree::CLOSE_TAG_ID);
 
   this->disable_text_index = disable_text_index;
   if (!disable_text_index){
+    fprintf(stderr, "Sample rate is %u\n", sample_rate);
     tc_builder = TextCollectionBuilder::create(sample_rate, idx_type);
     text_positions = new bit_vector();
     text_index_type = idx_type;