Community
Participate
Working Groups
XMLMemento should provide means to customize the format in which XML output is written. Adding XMLMemento.save(Writer, OutputFormat) would be nice.
Having just run into this myself, I'll second the motion, and even provide the code: /** * Saves this memento's document current values to the * specified writer. * * @param writer the writer used to save the memento's document * @param format format to use to save the memento's document */ public void save(Writer writer, OutputFormat format) throws IOException { Serializer serializer = SerializerFactory.getSerializerFactory("xml").makeSerializer(writer, format); //$NON-NLS-1$ serializer.asDOMSerializer().serialize(factory); }
There are currently no plans to work on this feature
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.