BaconBuilder.Model.Reader.GetBody C# (CSharp) Method

GetBody() public method

public GetBody ( ) : string
return string
        public string GetBody()
        {
            using (var reader = new XmlTextReader(new StringReader(Body)))
            {
                reader.DtdProcessing = DtdProcessing.Ignore;
                reader.WhitespaceHandling = WhitespaceHandling.None;

                reader.ReadToFollowing("body");
                var builder = new StringBuilder();
                var sub = reader.ReadSubtree();
                while (sub.Read())
                {
                    builder.Append(sub.ReadInnerXml());
                }
                return builder.ToString();
            }
        }