add tests to define xpath index spec
support for xpath parsing indexes
actual filtering by index logic and test for ios
Merge pull request #441 from jlipps/master

support for xpath indices in ios