It is legal to have XPath that is "/root/name[bogus = 'dave']" where the bogus node does not exist. It will return null on a SelectSingleNode.
But XPath that is "/root/name[5]" where there are only 4 name nodes under root throws an exception. (At least it does in .NET).
What is a good way to test and see if an index value is valid?
thanks - dave