using System.Collections.Generic;
using System.Diagnostics;
using System.Linq.Expressions;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Threading.Tasks;
using System.Collections;
using System.Text.RegularExpressions;
using System.ComponentModel;
using System.Collections.ObjectModel;
public static void Main()
string MyXml = @"<content>
XDocument XDocument = XDocument.Parse(MyXml);
var Filtered = XDocument.Root.DescendantNodes().OfType<XElement>();
foreach(var item in Filtered)
Console.WriteLine("Tag: "+item.Name +", Value: "+item.Value);