Forum Discussion

v3t3a's avatar
v3t3a
Occasional Contributor
11 years ago
Solved

Xquery or Xpath with mutiple results

Hi everybody, I just have a simply question (i don't find any response... sorry if it already exist) : - Is it possible to return multiple values for a Xquery request or a Xpath expression? I ...
  • v3t3a's avatar
    10 years ago
    It works with the follow query :

    declare namespace soap='http://schemas.xmlsoap.org/soap/envelope/';
    declare namespace ns1='http://echange.service.xxx.xxx.com';
    <Result>
    {
    for $x in //ns1:exportAbsenceRequestsListResponse/ns1:exportedAbsenceRequests/ns1:AbsenceRequest
    return<a>{data($x/ns1:employeeKey/text())}</a>
    }
    </Result>


    Thanks!