Fixed a bug from previous commit
Some more modifications so that % search doesnt run a select on xml_nodes.
Modified code so that when a % search is done, a xml_nodes search is not done. This search is not required and hence saves time in doing a % search
New class will be used in metacat ecogrid impl.