Skip to main content
LinkedIn
Copied!

Table of Contents

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.

  1. On the Mapping tab of the User Data window, choose the mapping method based your node type.

    Node type Actions
    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.
      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.
    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.

Did you find this content helpful?

Have a question? Get answers now.

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

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us