Sage.Configuration.ErrorViewInfo.ToXml C# (CSharp) Method

ToXml() public method

public ToXml ( XmlDocument document ) : XmlElement
document System.Xml.XmlDocument
return System.Xml.XmlElement
        public XmlElement ToXml(XmlDocument document)
        {
            XmlElement result = document.CreateElement("view", Sage.XmlNamespaces.ProjectConfigurationNamespace);
            result.SetAttribute("error", this.Error);

            result
                .AppendChild(document.CreateElement("developer", Sage.XmlNamespaces.ProjectConfigurationNamespace))
                .InnerText = this.DeveloperContent;

            result
                .AppendChild(document.CreateElement("default", Sage.XmlNamespaces.ProjectConfigurationNamespace))
                .InnerText = this.DefaultContent;

            return result;
        }