Also be aware that there are a few convenient attribute matching method extensions for XElement:
if (e.HasAttribute("Id", "MyAppID")) ... if (e.HasAttribute("Id", id => id.EndsWith(".PPLC"))) ...