Gruppe22.Backend.Actor.ToXML C# (CSharp) 메소드

ToXML() 공개 메소드

Write all data as an XML-string
public ToXML ( ) : string
리턴 string
        public string ToXML()
        {
            StringBuilder output = new StringBuilder("");
            XmlWriter xmlw = XmlWriter.Create(output);
            xmlw.WriteStartDocument();
            Save(xmlw);
            xmlw.WriteEndDocument();
            xmlw.Close();
            string result = output.ToString();
            result = result.Trim();
            result = result.Replace("  ", " ");
            result = result.Replace(Environment.NewLine, " ");
            result = result.Replace('\0', ' ');
            return result;
        }