protected virtual void DefaultDrawingELayerToXml(XElement root) { IGraphicsLayer gLayer = DefaultDrawingELayer.GraphicsLayer; IGraphicCollection gc = IS3Runtime.GraphicEngine.NewGraphicCollection(); foreach (IGraphic g in gLayer.Graphics) { gc.Add(g); } XElement parent = new XElement("DefaultDrawingELayer"); XElement node = GraphicsSerializer.GraphicsToXml(gc); parent.Add(node); root.Add(parent); }