- int NewClosingTag(unsigned char *tagname);\r
- \r
- /** NewText(s): indicates the event of finding a new (non-empty) text s in \r
- * the document. The new text is inserted within the text collection. \r
- * Returns a non-zero value upon success, NULLT in case of error. */\r
- int NewText(unsigned char *s);\r
-\r
- /** NewEmptyText(): indicates the event of finding a new empty text in the \r
- * document. In case of indexing empty and non-empty texts, we insert the \r
- * empty texts into the text collection. In case of indexing only non-empty\r
- * texts, it just indicates an empty text in the bit vector of empty texts. \r
- * Returns a non-zero value upon success, NULLT in case of error. */\r
- int NewEmptyText();\r
+ int NewClosingTag(std::string tagname);\r
+\r
+ /** NewText(s): indicates the event of finding a new text s in\r
+ * the document. The new text is inserted within the text collection.\r
+ * Returns a non-zero value upon success, NULLT in case of error.\r
+ * If the string is empty, which is legal in attributes, then\r
+ * the string the sequence '\0x01\0x00' is inserted in the TextCollection\r
+ * It is ok to do so since a non printable character cannot occur in an XML document\r
+ */\r
+ int NewText(std::string text);\r
+\r
+\r