fixes to XML syntax for Licene queries