add param for _fixFormatting, add .toXmlString