HPCC-11459 Add flag to toXML to allow newlines only formatting

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