Multi-Representation Examples
To access the examples, go to .
-
The PurchaseOrdersToMandP map shows you the use of multiple representations within a single map.
A common use case is processing multiple unrelated XML documents in a single input. In some cases you want to concatenate the documents, in others you might select a document based on what content is actually provided in the input.
This example shows processing of two existing structures representing different XML documents and automatically choosing between them. This is accomplished by having creating an enclosing structure (the map's input structure) which has an element that inherits from each of the desired XML structures. The enclosing structure uses the Flat representation and has a choice (note the group type of the Root element). Each of the members of a choice specifies an initiator string that is the initial part of the element of the member's XML document. A ReadNested function signals that the representation is to change to that of the enclosing structure (by default the representation does not need to be specified on the properties of the ReadNested).
-
Another example shows embedding flat content inside of XML. The POMap example illustrates this. If you look at the POs/PO/Vendor element, you can see that it has a ReadNested function as its I/O expression.
To view POMap, go to .