title: XPath to count the number of Attributes in an XML Element
body: <p>Is it possible to get number of attributes in XML element using XPath?</p>
  
  <pre><code>&lt;ABC xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  </code></pre>
  
  <p>From this example line I want to get back value 2. </p>
  
  <p>If it is not possible is any other way to check by XPath that namespace was defined and there are no other prefixes defined in XML?</p>