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

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