Sanitize the XPATH to allow for more complex queries
Don't replace the datasource node when the data is invalid. Fixes #13