fixed the topmost () bug, added getTextCollection function
[SXSI/XMLTree.git] / XMLTree.cpp
index b5e53a7..7d0c5e3 100644 (file)
@@ -580,8 +580,6 @@ int XMLTree::OpenDocument(bool empty_texts, int sample_rate_text)
        fprintf(stderr, "Error: not enough memory\n");\r
        return NULLT;\r
     }\r
-    setbit(par_aux,npar,OP);  // marks a new opening parenthesis for the tree root\r
-    npar++;\r
     \r
     tags_aux = (TagType *) malloc(sizeof(TagType));\r
     if (!tags_aux) {\r
@@ -621,8 +619,6 @@ int XMLTree::CloseDocument()
        fprintf(stderr, "Error: not enough memory\n");\r
        return NULLT;    \r
     }\r
-    setbit(par_aux,npar,CP); \r
-    npar++;\r
     \r
     // creates the data structure for the tree topology\r
     Par = (bp *)malloc(sizeof(bp));      \r