title: How to get value from XML using C# or VB?
body: <p>The Below xml format data is part of the SAML response of assertion XML, i dont konw how to pick the NorBefore and NotOnOrAfter from condtions node and AttributeValue from AttributeStatement node, so please help me to get these values from these xml. I am using visual studio 2005 and i need a code in C# or vb. </p>
  
  <pre><code>&lt;ns2:Conditions NotBefore="2014-01-16T22:10:09Z" NotOnOrAfter="2014-01-16T22:12:09Z"&gt;
  &lt;ns2:AudienceRestriction&gt;
  &lt;ns2:Audience&gt;namecomponent:test.comp.com&lt;/ns2:Audience&gt;
  &lt;/ns2:AudienceRestriction&gt;
  &lt;/ns2:Conditions&gt;
  &lt;ns2:AuthnStatement AuthnInstant="2014-01-16T22:10:39Z" SessionIndex="8cILoZqzVAFS2t8zF65fmT2rIFE=F5zAiA==" SessionNotOnOrAfter="2014-01-16T22:12:09Z"&gt;
  &lt;ns2:AuthnContext&gt;
  &lt;ns2:AuthnContextClassRef&gt;urn:oasis:names:tc:SAML:2.0:ac:classes:Password&lt;/ns2:AuthnContextClassRef&gt;
  &lt;/ns2:AuthnContext&gt;
  &lt;/ns2:AuthnStatement&gt;
  &lt;ns2:AttributeStatement&gt;
  &lt;ns2:Attribute Name="NameID" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"&gt;
  &lt;ns2:AttributeValue&gt;EMP10344&lt;/ns2:AttributeValue&gt;
  &lt;/ns2:Attribute&gt;
  &lt;/ns2:AttributeStatement&gt;
  </code></pre>
  
  <p>Thanks</p>