Need a some help on below expressions with loop
Hi All, I need a some help on reading the below rtevent expressions and put it in table format using while loop or for loop,
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:nms:rtEvent">
<soapenv:Header/>
<soapenv:Body>
<urn:PushEvent>
<urn:sessiontoken>?</urn:sessiontoken>
<urn:domEvent>
<rtEventtype="Welcome_N" email="veera@gmail.com" wishedChannel="email">
<ctx>
<schedulePaymentData>
<schedule>
<schedulePaymentDate> 03/03/2026 </schedulePaymentDate>
<schedulePaymentAmount> 599.34 </schedulePaymentAmount>
</schedule>
<schedule>
<schedulePaymentDate> 03/04/2026 </schedulePaymentDate>
<schedulePaymentAmount> 499.34 </schedulePaymentAmount>
</schedule>
<schedule>
<schedulePaymentDate> 03/05/2026 </schedulePaymentDate>
<schedulePaymentAmount> 399.34 </schedulePaymentAmount>
</schedule>
<schedule>
<schedulePaymentDate> 03/06/2026 </schedulePaymentDate>
<schedulePaymentAmount> 299.34 </schedulePaymentAmount>
</schedule>
</schedulePaymentData>
</ctx>
</rtEvent>
</urn:domEvent>
</urn:PushEvent>
</soapenv:Body>
</soapenv:Envelope>
give me the for/while loop code to read the above soap in Adobe Campaign Classic v8 javascript variables for AEM rte component and rtevent expressions in AEM