fixed the topmost () bug, added getTextCollection function
[SXSI/XMLTree.git] / XMLTree.h
index c0dab2b..f605286 100644 (file)
--- a/XMLTree.h
+++ b/XMLTree.h
@@ -333,9 +333,12 @@ public:
    /** GetText(d): returns the text corresponding to document with\r
     * id d. */\r
    uchar* GetText(DocID d) {\r
-      Text->GetText(d);\r
+      return Text->GetText(d);\r
    }\r
    \r
+   TextCollection *getTextCollection() {\r
+      return Text;\r
+   }\r
    /** Save: saves XML tree data structure to file. */\r
    void Save(unsigned char *filename);\r
       \r