public ParaGroup CreateBspace(String file) { ParaGroup pGroup = new ParaGroup(); pGroup.SetFilePath(file); return(pGroup); }
public void Save(ParaGroup paraGroup) { //Save to file path XmlSerializer xs = new XmlSerializer(typeof(ParaGroup)); StreamWriter sw = new StreamWriter(paraGroup.FullPath, false); XmlSerializerNamespaces nmsp = new XmlSerializerNamespaces(); nmsp.Add("", ""); XmlWriterSettings xsettings = new XmlWriterSettings(); xsettings.OmitXmlDeclaration = true; xsettings.Indent = true; XmlWriter xWrite = XmlWriter.Create(sw, xsettings); xs.Serialize(xWrite, paraGroup, nmsp); sw.Close(); }