title: Using not() in XPath
body: <p>I would like how to use the "not" in XPath properly. I just can't seem to get it to work with attributes.</p>
  
  <p>Say I have this expression: <code>//*[@name = 'Bob']</code> It is valid, and will return all nodes that have a name attribute equaling 'Bob'.</p>
  
  <p>Now if I want all nodes that have a name attribute that do not equal 'Bob', I need to use an XPath such as: <code>//*[@name not(='Bob')]</code> but this is invalid. </p>
  
  <p>I have tried multiple combinations with not() being placed in a different order, but I can't seem to get this to work. Could someone please inform me how to use not() properly?</p>
  
  <p>Also, does the order change when using elements instead of attributes? Such as: <code>//name[text() = 'Bob']</code></p>
  
  <p>Thanks!  :)</p>