Power Automate has an XML expression which you can use to convert the JSON body output of a List Rows action to XML. Here is an example of how to achieve it.
You'll need to take the child dataset and merge it into the parent dataset xml which you should be able to do with a Compose action.
--- Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.