Creating XML
Views (127)
Extensible Markup Language (XML) is a text-based standard for representing
data and is commonly used for data exchange and business-to-business
communication.
The structure of XML files is similar to HTML in that it uses tags to define
sections of the file. Each tag defines either single or groups of data elements, and
can also have attributes (for example, a date or reference ID) attached to the tag.
The following is an example of a simple XML file:
Since it is a simple text file, it is possible to create an XML file using Microsoft
Dynamics AX AsciiIO class, and to ensure that all the tags are correctly
formatted and positioned. Be careful though as the tags are case-sensitive.
Alternatively, Microsoft Dynamics AX includes a wrapper for the COM objectmicrosoft.xmldom, which creates the file using tag names and data.
The following example creates an XML file containing employee names and
addresses:
Best Regards,
Hossein Karimi
data and is commonly used for data exchange and business-to-business
communication.
The structure of XML files is similar to HTML in that it uses tags to define
sections of the file. Each tag defines either single or groups of data elements, and
can also have attributes (for example, a date or reference ID) attached to the tag.
The following is an example of a simple XML file:
1 | <note> |
Since it is a simple text file, it is possible to create an XML file using Microsoft
Dynamics AX AsciiIO class, and to ensure that all the tags are correctly
formatted and positioned. Be careful though as the tags are case-sensitive.
Alternatively, Microsoft Dynamics AX includes a wrapper for the COM objectmicrosoft.xmldom, which creates the file using tag names and data.
The following example creates an XML file containing employee names and
addresses:
1 | static void XMLWriteEmplAddr(Args _args) |
Best Regards,
Hossein Karimi

Like
Report
*This post is locked for comments