hello i get a value from data base like
<INVOICE>
<MSISDN>648</MSISDN>
<FIRST_NAME>name</FIRST_NAME>
<CUSTCODE>66</CUSTCODE>
<MSISDN>64d8</MSISDN>
<FIRST_NAME>nasdme</FIRST_NAME>
<CUSTCODE>6sd6</CUSTCODE>
</INVOICE>
i want to get this value in xquery i try this one but it gets me only first row
<ns0:ResponseBody>
{
for $PERIOD in $backendResponse/IWIS_SERVICE_RETURN/INVOICE
return
<ns0:invoice>
<ns0:msisdn>{data($PERIOD/MSISDN)}</ns0:msisdn>
<ns0:first_name>{data($PERIOD/FIRST_NAME)}</ns0:first_name>
<ns0:custcode>{data($PERIOD/CUSTCODE)}</ns0:custcode>
</ns0:invoice>
}
</ns0:ResponseBody>
No comments:
Post a Comment