added xml output and xpath filtering of output