fixed small mistakes with text search functions in XMLtree.h