How to generate xml of this format

How to generate xml of this format

  
Hello Community members,

I want to generate xml of this format.

<group id="CBH01">
                <trans-unit id="EXT_PRD_NAME" translate="no" resname="External Product Name">
                    <source>Logitech Group</source>
                    <target>Logitech Group</target>
                    <note>Note for External Product Name</note>
                </trans-unit>
 </group>

<group id="CBD01">
                <trans-unit id="CORE_IDEA" resname="Core Idea">
                    <source></source>
                    <target></target>
                    <note></note>
                </trans-unit>
                <trans-unit id="FEATURE_1" resname="Feature 1">
                    <source>Professional HD 1080p video quality</source>
                    <target>Qualité vidéo HD 1080p professionnelle</target>
                    <note></note>
                </trans-unit>
</group>

Please suggest how to proceed. 

How should I set XMLConfig values, Attribute config values, RecordListNode.

Thanks a lot.

-- Suraj B.

Hello Suraj B.,
 
Sorry by the late answer, I've created an example for your case and attached to this reply I've added a espace with it.
 
Was this what you needed? Let me know if you need further help.
 
Best Regards,
João Pêgas.
Hi Joao, Thanks a lot for taking efforts to make this oml. I will check it tomorrow morning and will let you know. Thanks again. --Suraj B
Hi Joao,

Thanks for this oml. It solved bit of my problem but it is missing attributes creation. Can you please update it with the creation of attributes as I have mentioned "id" and "resname" in above mentioned example.

Thanks a lot.

-- Suraj B.
Hey Joao,

I managed to generate attributes for internal nodes as shown for transunit. 

Can you please guide how to generate attributes for external nodes (For this case, I want it for group node)?

Thanks a lot.

-- Suraj B
Hello Suraj B,

Sorry by the late reply but I'm with many things on hands and didn't had time. I think that with XML Records extension we can not add new parameters / attributes to the nodes, how did you manage to do add the same attributes to the "trans-unit" nodes?

Best Regards,
João Pêgas.