How to Quickly Build Custom XML

Data Source Automation framework that is part of Docentric AX Framework can be used for quick building of custom XML documents or fragments, outside the scope of Reporting and Output Management.

You can collect, calculate and shape data as needed by simple traversing trough them, using plain X++ constructs and one special class – the RecordBuilder class. This class has several utility methods such as exportToXmlStr() and exportToXmlFile() that enable serialization to XML.

Thus, for example we can use the RecordBuilder class to serialize one or more table records with their child records to XML, or even to build the corresponding XML schema.

Let’s look at how to serialize a particular SalesTable record to XML.

See also

How to Write a Data Source Provider Class >>

IN THIS ARTICLE