HPCC-10424 Make codegen use of IXmlWriter JSON compatible

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>