Class SimpleXmlWriter

java.lang.Object
org.jhotdraw8.draw.io.SimpleXmlWriter
All Implemented Interfaces:
ClipboardOutputFormat, OutputFormat

public class SimpleXmlWriter extends Object implements OutputFormat, ClipboardOutputFormat
SimpleXmlWriter.

Represents each Figure by an element, and each figure property by an attribute.

All attribute values are treated as value types, except if an attribute type is an instance of Figure.

This writer only works for drawings which can be described entirely by the properties of its figures.

Attempts to preserve comments in the XML file, by associating them to the figures and to the drawing.

Does not preserve whitespace in the XML file.

Author:
Werner Randelshofer