/// <summary> /// Save the GOM_Diagram type to a xml file /// </summary> public void SaveDiagramToXml( System.Xml.XmlTextWriter writer ) { GOMLib.GOM_Diagram diagram = new GOMLib.GOM_Diagram(m_rgObjects,m_rgLinks); diagram.SaveToXML(writer); }
//Convert the current Diagram to differntXML type public void DiagramConvertXml() { //convert diagram to xmlwriter GOMLib.GOM_Diagram diagram = new GOMLib.GOM_Diagram(m_rgObjects, m_rgLinks); System.IO.StringWriter stringWriter = new System.IO.StringWriter(); System.Xml.XmlTextWriter xmltextWriter = new System.Xml.XmlTextWriter(stringWriter); diagram.SaveToXML(xmltextWriter); string diagramString = stringWriter.ToString(); //convert xmlWriter to different XML class ( EE) EEXmls = new EEDomain.ReadFromXml(diagramString); }