I'm totally new to XPath and need to use it for a project. My XML looks like
<AverageErrorRate>
<float>0123</float>
<float>0456</float>
</AverageErrorRate>
I'm using this site: http://www.xpathtester.com/xpath
When I try to do:
/AverageErrorRate/float[0]
It just returns the same thing to me. But if I do
/AverageErrorRate/float[1]
Then I get 0123 which is what I want. Am I missing something about the way XPath works?