add xpath to xml syntax errors