Mapping attributes and elements in an XML Stream rule
XML Stream rules allow you to map both element and attribute nodes to clipboard pages. Map the elements and attributes in your XML to properties in Pega Platform.
- In the navigation pane of Dev Studio, click Records.
- Expand the Integration-Mapping category, and then click XML Stream.
- Click the row of an XML Stream rule to open it.
- Double-click a tree node to display the User Data window for the node.
- On the Mapping tab of the User Data
window, choose the mapping method based on your node type.
Node type Actions Attribute - Optional: In the Context Page field, specify a
page listed on the Pages &
Classes tab to be used as the source for the
XML stream data.You might also specify an embedded Page or Page List property of the node context class. Use a Page List property for mapping when the Repeating flag is set on the Node tab of the User Data panel.
- In the Source Property field,
specify the property to map the XML node from.You can specify a Single Value or Value List property.
Element - In the Mapping mode field, choose
the method used to map XML elements to properties:
- Standard – Auto-generate XML stream content based on the values listed in the selected node and any of its child nodes.
- Literal XML – Insert the literal content of the Source Property into the XML stream instead of auto-generating XML content for the selected element.
- Apply Rule – Insert the content of an existing XML stream instead of generating XML content for the selected element.
- Optional: In the Context Page field, specify a
page listed on the Pages &
Classes tab to be used as the source for the
XML stream data.You might also specify an embedded Page or Page List property of the node context class. Use a Page List property for mapping when the Repeating flag is set on the Node tab of the User Data panel.
- In the Source Property field,
specify the property to map the XML node from.You can specify a Single Value or Value List property. This field is used only for Standard and Literal XML mapping modes.
- In the Stream Name field, specify
the XML Stream name to map the node from. This field is used only for the Apply Rule mapping mode.
- In the XML Type field, enter the XML
type of the stream chosen to map the XML node from.This field is used only for the Apply Rule mapping mode.
- Optional: In the Context Page field, specify a
page listed on the Pages &
Classes tab to be used as the source for the
XML stream data.
- Click OK to close the User Data
window, or click the Node tab to continue configuring the
node.For more information, see Configuring the node for an XML Stream rule.
Previous topic Defining the mapping for an XML Stream rule Next topic Configuring the node for an XML Stream rule