Defining the mapping for a Parse XML rule
Use the Mapping tab to define Parse XML rules using a graphical tree control. The tree structure allows you to define how the parsed XML data will be mapped to the clipboard values referenced in the individual tree nodes.
- In the navigation pane of Dev Studio, click Records.
- Expand the Integration-Mapping category, and then click Parse XML.
- Click the row of a Parse XML rule to open it.
- On the Mapping tab, to enable the XML data to be edited using
the tree control, select Allow tree editing?If the XML is autogenerated, this check box is selected by default.
- To add a mapping for an XML attribute, select the element that you want to add an attribute to, and then click Add Attribute.
- To add a child element to the selected element, click Add Element.
- To delete an element or attribute and all of its child elements or attributes, click Delete.
- Double-click a tree node to display the User Data window for the node.
- In the User Data window, in the Node Name
field, enter the attribute or element name that the generated parsing code searches
for.You can set this value to _any_ to indicate that the generated parsing code is to search for any attribute or element node at this location in the tree.
- In the Node Type field, specify if the selected node is an Element or Attribute.
- Configure the Mapping, Node, and Type tabs. For more information, see the following documentation:
- Mapping XML attributes and elements in a Parse XML rule
Parse XML rules allow you to map both element and attribute nodes to clipboard pages. If your node type is Attribute, map the attributes in your XML to properties in Pega Platform.
- Configuring XML tree node properties for a Parse XML rule
Configure nodes for element or attribute node types to be included in the tree structure. The tree structure allows you to define how the parsed XML data will be mapped to the clipboard values referenced in the individual tree nodes.
- Parsing date, dateTime, and time values in a Parse XML rule
XSD date, dateTime, and time values use a special formatting that is distinct from Pega Date, dateTime, and TimeOfDay property value formatting. For these XSD types, you must specify dateTime, date, or time as the XSD base type for the property to parse correctly.
Previous topic Creating a Parse XML rule Next topic Mapping XML attributes and elements in a Parse XML rule