title: What is namespace in xpath axes
body: <p>I am looking into the XPath Axes and I am able to understand all below axes</p>
  
  <p>'ancestor'<br>
  | 'ancestor-or-self'<br>
  | 'attribute'<br>
  | 'child'<br>
  | 'descendant'<br>
  | 'descendant-or-self'<br>
  | 'following'<br>
  | 'following-sibling'<br>
  | 'parent'<br>
  | 'preceding'<br>
  | 'preceding-sibling'<br>
  | 'self'</p>
  
  <p>The only axes I am not able to understand is </p>
  
  <p><strong>| 'namespace'</strong></p>
  
  <p>Can anyone give me a good example and understanding about what 'namespace' actually do?</p>
  
  <p>Example:-</p>
  
  <p>Open :- <a href="https://www.google.co.in/" rel="nofollow">https://www.google.co.in/</a></p>
  
  <p>OR</p>
  
  <p>HTML code</p>
  
  <pre><code>&lt;a style="left:-1000em;position:absolute" href="/setprefs?suggon=2&amp;prev=https://www.google.co.in/&amp;sig=0_ujdR1PrGxEbi_EiD6RbIb4VvaXc%3D"&gt;Screen-reader users, click here to turn off Google Instant.&lt;/a&gt;
  </code></pre>
  
  <p>I am trying the below xpath</p>
  
  <pre><code>  //a[@style='left:-1000em;position:absolute']/namespace::*[name()='google']
  </code></pre>
  
  <p>What is wrong I am doing in above namespace?</p>
  
  <p>In addition I also want to know about that what is the use of axes | 'attribute'. where and in which situation it is helpful</p>