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.
- 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, double-click a tree node to display the User Data window for the node.
- On the Node tab of the User Data
window, in the Node Namespace field, enter a
namespace.This option is typically set when the parse rule is auto-generated from an XML Schema Definition (XSD). If the option is set, the attribute or element name must be prefix-qualified with the specified namespace value for its value to be parsed and mapped to the clipboard.
- If the node type is Element, and the same element can appear multiple times in
a sequence, select Repeating to map the list of elements
to a list property.
- In the Substitution field, to indicate whether this
element or its content can be substituted at run time using a different element
or complex type definition. This option, as well as the content of the Type Substitution and Element Substitution tables on the XML tab of the parse rule, is typically set when the parse rule is auto-generated from an XSD.
By using the Apply Rule mapping mode, the actual component parse rule instance that is applied to parse the element content can be determined dynamically at run time by matching the type or element name from the inbound XML document with an entry in either the Type Substitution or Element Substitution table. If found, the Class name specified in the third column of the table will be used to select the most appropriate Parse XML rule to process the element content.
- Click OK to close the User Data
window, or click the Type tab to continue configuring the
XSD type.For more information, see Parsing date, dateTime, and time values in a Parse XML rule.