Hi,
In AX 2012, createelement() method for xml when you try to add a string like this
static void xml_formatting(Args _args)
{
XmlDocument doc;
XmlElement nodewb,nodestyls;
#define.filename('D:\\xml_format.xml')
doc = XmlDocument::newBlank();
nodewb = doc.createElement('ss:Workbook');
nodewb.setAttribute('xmlns:ss','urn:schemas-microsoft-com:office:spreadsheet');
doc.appendchild(nodewb);
doc.save(#filename);
}
In xml generated only Workbook is getting displayed ss: is not. What is the issue? Kindly help
thanks
Karthik
*This post is locked for comments
I have the same question (0)