Replaced an deprecated XPathException.
Merge pull request #157 from claudius108/develop

Replaced a deprecated XPathException.