created base class for conditions, moved there len reverse and case
sensitivity
now parses xml with \r\n and text nodes