Creating a Parse XML rule
Create a Parse XML rule to map data from an XML text message into clipboard property values. Parse XML rules are primarily used with SOAP services and connectors. You can also call a Parse XML rule from an activity.
A Parse XML rule has three key parts: a class, a namespace, and a root element name. Typically, the namespace and root element name match the values on the root node in the tree view. However, they are not required to match.
- In the header of Dev Studio, click .
- On the Create page, in the Label field,
enter a name to group logically related XML documents.This value is arbitrary and is used only to differentiate identical element names that are used in different contexts. (You can include special characters such as @, % & * in this key part.)
Although conceptually similar to a XML namespace, the Namespace key part is not used for matching namespace-qualified element names as defined by an XML Schema (XSD) definition.
- In the Root Element Name field, enter the name of the root
element of the XML documents to be parsed by this rule.This value must be a valid Java identifier.
- In the Context section, in the Apply to
field, select a class for this rule.The class is typically derived from the Data- base class or Work- base class.
The list of available class names depends on the ruleset that you select. Each class can restrict applying rules to an explicit set of rulesets as specified on the Advanced tab of the class form.
- For more information on completing additional fields on this form, see Creating rules.
- Click Create and open
Previous topic Parse XML rules Next topic Defining the mapping for a Parse XML rule