<constructor>
This statement constructs a well-formed document, wrapped in a root node, and assigns it to an input or output parameter or to a variable. You define the structure as literal XML and assign static data or use dynamic mashup expressions to assign data dynamically.
Note: | It is a good practice to use a separate namespace for the elements in the structure being constructed, so that they are clearly separated from EMML markup. |
See
Construct the Complete Document and
Construct the Root and Append Repeated Content for examples of the two common patterns used with <constructor>. See also
Working Samples for information on sample mashups that use this statement.
Can Contain | Can contain text and any well-formed literal XML. |
Allowed In | mashup | catch | else | elseif | for | foreach | if | macro | operation | sequence | try | while |
Attributes
Name | Required | Description |
outputvariable | yes | The required variable to accept the output of this statement. |