Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Mapping attributes and elements in an XML Stream rule

Updated on April 6, 2022

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.

  1. On the Mapping tab of the User Data window, choose the mapping method based your node type.
    Node typeActions
    Attribute
    1. 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.
    2. 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
    1. 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.
      Note: You must define the component parse rule on the Context class of the node from which it is referenced.
    2. 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.
    3. 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.
    4. 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.
    5. 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.
    Note: The Context Class field is read-only. This field lists the class of the page or property in the Context Page field. If a context page is not specified on the selected node, the value defaults to the context class of the selected node parent. The context class of the root node is the class that the stream rule applies to.
  2. Click OK to close the User Data window, or click the Node tab to continue configuring the node.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us