Add XMLWriter Compatibility option

This adds the XMLWriter Compatibility option for issue #103