How to parse and index xml in ES7

There is an example of an xml filter using xpath here.