HPCC-11459 Use new toXML formatting flags in getQueryInfo

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>