Added code to check if the document is indexed yet! So entry into xml_queryresult is only made if the doc is in xml_index.
Added code to check if the document is indexed yet! So entry into xml_queryresult is only made if the doc is in xml_index.