You don't need save your diagram into xml, it is enought to save your diagram model GraphicalViewer.setContent(... your model here...).
If the model of your editor is EMF model you can serialize your diagram into XMI format. EMF supports this out of box (take a look at XMIResource class).
But if you have your custom model (some java objects) you need to define custom serialization/deserialization.