Parse XML form
Completing the Mapping tab

  1. About 
  2. New 
  3. Mapping 
  4. Pages &Classes 
  5. XML 
  6. History 
  7. More... 

Use the Mapping tab to define Parse XML rules using a graphical tree control. GRP-510 5.5

OldThis tree structure was introduced in V5.5. Click Upgrade to enable the XML Tree Control on any Parse XML rule created prior to Version 5.5. After the upgrade is complete, you cannot return to the former presentation of the parse rule.

In the tree structure, element marks an element, and Attribute marks an attribute.

Field

Description

Allow Tree Editing?

Enables the XML data to be edited using the tree control. This option is available only if Auto-generated XML? is selected on the XML tab.

Delete Delete an element or attribute and all of its child elements or attributes.
Add attribute Add an attribute to the selected element.
Add Child Add a child element to the selected element.
Update Click to update the XML tree content to reflect definitions contained in the schema document referenced on the XML tab. (This is useful when a newer version of an XSD becomes available.) This starts the Connector and Metadata Accelerator.

Double-click a tree node to displays Node Properties Panel.

Node Properties Panel — Mapping tab

Field

Description

Mapping Mode

Choose the method used to map XML elements to properties.

  • Standard — Parse and extract data from the inbound XML based on the values listed in the selected node and any of its child nodes.
  • Literal XML — Convert the XML content of an element, including its tag, attributes, character data, and/or child element content to a string and then set it as the value of the specified Property.
  • Apply Rule — Invoke a component Parse XML rule to parse the content of the selected element node.
Context Page

Optional. Specify a page listed on the Pages & Classes tab to be used as the target for parsed XML data values. You may also specify an embedded Page, Page List, or Page Group property. If a Page Group property is used, the name of the parsed attribute or element is used as the group subscript value. This is useful when _any_ is specified as the Node Name value.

Override Class

If Context Page is set to a Page, Page List, or Page Group property, specify the concrete class that will be used when mapping XML to the embedded page. Bug-41966

Context Class

Read-only. Lists the class of the Context Page.

Property

Used only for Standard and Literal XML mapping modes. Specify to map the character data of the XML node to.

You may specify a Single Value, Value List, or Value Group property. If a Value Group property is used, the name of the parsed attribute or element is used as the group subscript value. This is useful when _any_ is specified as the Node Name value.

Namespace

Used only for the Apply Rule mapping mode. Specify the Namespace key part of the parse rule that will be called to parse the element content. This may be different from the Node Namespace value.

Element Name

Used only for the Apply Rule mapping mode. Specify the Element Name key part of the parse rule that will be called to parse the element content. This may be different from the Node Name value.

Node Properties Panel — Node tab

Field

Description

Node Type

Specify if the selected node is an Element or Attribute.

Node Name

Enter the attribute or element name that the generated parsing code will search for. You may 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.

Node Namespace

This option is typically set when the parse rule is auto-generated from an XML Schema Definition (XSD).

Is Optional?

This option is typically set when the parse rule is auto-generated from an XML Schema Definition, and has no effect on parsing.

Is Repeating?

Select to indicate that the element may appear more than once at this position in the XML data stream. If checked, provide a Page List or Page Group property reference in the Target Property field to map the XML content to repeating clipboard data values.

Is Nillable?

This option is typically set when the parse rule is auto-generated from an XML Schema Definition, and has no effect on parsing.

Substitution

Indicates whether this element or its content can be substituted at runtime 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 XML Schema Definition.

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 runtime 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.

Node Properties Panel — Type tab

Field

Description

XSD Base Type

This option is typically set automatically when the parse rule is auto-generated from an XML Schema Definition.

Note: if you are parsing a DateTime field you need to specify "dateTime" in this field for the property to parse correctly.

Type Name

This option is typically set when the parse rule is auto-generated from an XML Schema definition, and has no effect on parsing.

Type Namespace

This option is typically set when the parse rule is auto-generated from an XML Schema definition, and has no effect on parsing.

Default Value

This option is typically set when the parse rule is auto-generated from an XML Schema definition, and has no effect on parsing.

Value Constraints

These values are typically set when the parse rule is auto-generated from an XML Schema Definition, and have no effect on parsing.

Is SOAP Array?

This option is typically set when the parse rule is auto-generated from an XML Schema Definition, and has no effect on parsing.

Parser Steps (Deprecated)

These fields are deprecated in V5.5+. For an explanation of these fields, see Parse XML form — Completing the Mapping tab (V5.4 fields).

Parse Type (Deprecated)

This field is deprecated in V5.5+. For an explanation of these fields, see Parse XML form — Completing the Mapping tab (V5.4 fields).

Up About Parse XML rules