Hpcc 11459 2

HPCC-11459 Use new toXML formatting flags in getQueryInfo
    
   HPCC-11459 Flags to toXML to allow more control over formatting