My rest service returns an xml which looks like:
ulli
span class="type1"data1/span
span class="type2"data2/span
span class="type3"data3/span
/li/ul
And I want to map $(".type2").val() to an input text box.
It works fine if I change the javascript span[0] to span[1]
'responseMapping': [{
'PATH': ['html', 'body', 'div', 'ul', 'li', 'span[1]', 'content'],
But can it be done by using the data mapping only, i.e. without any javascript editing?