From: Kim Nguyễn Date: Sat, 6 Oct 2012 18:14:42 +0000 (+0200) Subject: Fixes bug where the tag ID used for the root is xml_tree::CLOSE_TAG. X-Git-Url: http://git.nguyen.vg/gitweb/?a=commitdiff_plain;h=23fb7cad5ba8bca3cf899f3c58f879b416ba05b1;hp=2b67e586d2ea45d87648ac3977306139110c4e78;p=SXSI%2FXMLTree.git Fixes bug where the tag ID used for the root is xml_tree::CLOSE_TAG. --- diff --git a/xml-tree-builder.cpp b/xml-tree-builder.cpp index a55767c..f0c788f 100644 --- a/xml-tree-builder.cpp +++ b/xml-tree-builder.cpp @@ -81,6 +81,8 @@ 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){