Bug 25530 - XMLMemento should allow to customize written output
Summary: XMLMemento should allow to customize written output
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2002-10-30 06:54 EST by Askar Rahimberdiev CLA
Modified: 2009-08-30 02:09 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Askar Rahimberdiev CLA 2002-10-30 06:54:19 EST
XMLMemento should provide means to customize the format in which XML output is 
written. Adding XMLMemento.save(Writer, OutputFormat) would be nice.
Comment 1 Sam Robb CLA 2003-03-04 22:10:12 EST
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);
}
Comment 2 Tod Creasey CLA 2006-06-22 10:55:36 EDT
There are currently no plans to work on this feature
Comment 3 Denis Roy CLA 2009-08-30 02:09:52 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.