Created XPathQuery and XPathPattern + separated parsing from searching