HPCC-11459 Flags to toXML to allow more control over formatting

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
HPCC-11459 Use new toXML formatting flags in getQueryInfo

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Merge pull request #5950 from jakesmith/hpcc-11459-2

HPCC-11459 Flags to toXML to allow more control over formatting

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>