title: How to get the tag name using Linq to XML
body: <p>If you have an XElement obj how do you get the tag name of the xelement object?</p>
  
  <pre><code>doc.Descendants("name").Where(x =&gt; (string) x == cit.name).FirstOrDefault().Parent
  </code></pre>
  
  <p>i would like to get the tagname of this xelement object. </p>