I have not done any XML. But don’t think that will be at issue.
What you need to do is setup an iterate on you STF field.
It will have to copy each sub field out into your destination.
I would use a variable to copy it to then after the Iterate copy the variable to your XML field.
I assume all those function should work when working with XML.
Type field
basis ((0).SFT.#16 ( This will have to be modified to pint correctly.
Variable %f1
concat 0(0)SFT.#16(%f1) -> @TEMP
(END ITERATE)
copy
@TEMP -> DMS…..FLD
That should do your trick. I type this in from memory so maybe not real accurate but should get you pointed in the right direction.