XMLWriter implementa diagramSaver