passing options.indent along when creating XmlWriter