Hi All,
I am creating an XML in AX 2012, my XML format achieved from code is

My Code is :
XmlDocument xmlDoc;
XmlNode nodeRoot;
XmlElement catNode, dataAreaNode, processNode, processSubNode;
XmlElement applicationArea;
XmlElement senderInfo, sender;
XmlWriter xmlWriter;
;
xmlDoc = XMLDocument::newBlank('UTF-8');
nodeRoot = xmlDoc.documentElement();
//Create catNode Node
catNode = xmlDoc.appendChild(xmlDoc.createElement2('cat', 'cat01')); //'catalog','cat01'));
catNode.setAttribute('xmlns:prod','http://datypic.com/prod');
catNode.setAttribute('xmlns:cat01','http://datypic.com/cat');
//Create area Node
applicationArea = catNode.appendChild(xmlDoc.createElement3('prod','product','cat01'));
//Create Sender Node
senderInfo = applicationArea.appendChild(xmlDoc.createElement3('prod', 'number', 'cat01'));
senderInfo.text('563');
//Create Creation date time Node
senderInfo = applicationArea.appendChild(xmlDoc.createElement3('prod','name', 'cat01'));
senderInfo.text('Floppy Sun Hat');
xmlWriter = XMLWriter::newFile(@"D:\New folder\cars18.xml");
xmlDoc.writeTo(xmlWriter);
info("Bnvf");
My required/Target XML format is

I need your suggestions for achieving this format, where should i change my code.
Regards,
rakesh