Support for 'namespaces' option which is passed to xpath

Upgraded xpath version