Xml file with totals on higher node

Hello Experts,

I am working on a requirement to generate a complex xml file using SAP Data Services. I have already uploaded xsd into SAP Data Services 4.2. Attached is the expected output of the xml file. I am looking for some guidance as to how to approach to get it built. Please share your thoughts.