Add xpath policy and change "method" parameter to "type"