To access the examples, go to> > > .
Themap shows 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 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).representation and has a choice (note the group type of the 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
This example also shows the use of Map Inheritance where the from the map is used between the structure and the structure. This allows you to build and test a map between the two XML documents and then completely reuse the map in other cases (like this one).
Another example shows embedding flat content inside of XML. The /Examples/Maps/Simple/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, go to > > .