this.tree = tree;
}
public void write(Writer writer) throws IOException {
XMLWriterNamespaceManager nsm = new XMLWriterNamespaceManager("");
XMLWriter xmlWriter = new XMLWriterImpl(writer, nsm);
xmlWriter.writeStartElement(PLIST_ELEMENT_NAME);
xmlWriter.writeStartElement(DICT_ELEMENT_NAME);
xmlWriter.writeStartElement(KEY_ELEMENT_NAME);
xmlWriter.writeTextContent(GRAPHICS_LIST);
xmlWriter.writeEndElement();
xmlWriter.writeStartElement(ARRAY);
writeTreeElement(tree, xmlWriter);
xmlWriter.writeEndElement();
xmlWriter.writeEndElement();
xmlWriter.writeEndElement();
}