title: Parsing a XDocument
body: <p>I have the following XDocument:</p>
  
  <pre><code>&lt;ExtensionInfo&gt;
    &lt;ObjectExtension /&gt;
    &lt;AttributeExtension&gt;
      &lt;Attribute Name="PV" ExtensionType="inputoutputextension" InheritedFromTagName="$CT_STQ_V2" /&gt;
      &lt;Attribute Name="PV" ExtensionType="logdatachangeeventextension" InheritedFromTagName="$CT_STQ_V2" /&gt;
      &lt;Attribute Name="STS" ExtensionType="inputoutputextension" InheritedFromTagName="$CT_STQ_V2" /&gt;
      &lt;Attribute Name="STS" ExtensionType="booleanextension" InheritedFromTagName="$CT_STQ_V2" /&gt;
      &lt;Attribute Name="STS" ExtensionType="alarmextension" InheritedFromTagName="$CT_STQ_V2" /&gt;
      &lt;Attribute Name="STS" ExtensionType="logdatachangeeventextension" InheritedFromTagName="$CT_STQ_V2" /&gt;
    &lt;/AttributeExtension&gt;
  &lt;/ExtensionInfo&gt;
  </code></pre>
  
  <p>I am trying to return $CT_STQ_V2 if and only if the Attribute Name="STS" and ExtensionType="alarmextension"</p>
  
  <p>How can I use XDocument &amp; LINQ query to get what I need. I need to parse through thousands of XML files so fast performance would be required. Any suggestions would help.</p>
  
  <p>Thank you.</p>