using System.Xml.Serialization;
using System.Text.RegularExpressions;
public static void Main()
var mydoc = XDocument.Parse(xml);
var _placeholderRegex = new Regex("({{.+?}})");
var placeHolders = from d in mydoc.Descendants()
where d.DescendantNodes()
.Any(o => o.Parent == d && _placeholderRegex.IsMatch(o.Value))
foreach (var placeHolder in placeHolders)
Console.WriteLine(placeHolder.Value);