Grooper Help - Version 25.0
25.0.0017 2,127
  • Overview
  • Help Status

XML Value Selector

Embedded Object Grooper.EDI

Defines a return value to be captured from each XML node matched by the Record Selector.

Remarks

XML Value Selectors define which values to extract from each XML node (record) matched by the Record Selector in an XML Lookup.

How to Configure

  • Path:
    Enter an XPath expression (relative to the record node) to select the value you want to extract.

    • You can select an attribute (e.g. @transaction_id) or a child element (e.g. Customer/Name).
    • If you select an attribute, its value will be returned. If you select an element, the inner text of that element will be returned.
  • Target Field:
    Choose the Grooper field where the extracted value should be stored.

    • If you set a Target Field, the value will be mapped directly to that field.
  • Alias Name:
    Optionally, provide an alias to use as the column name in the results.

    • If no Target Field is set, the Alias Name (or Path) will be used as the column name.

Tips

  • Use the Path editor for syntax highlighting and code completion when entering XPath expressions.
  • You can add multiple value selectors to extract several values from each record node.
  • If both Target Field and Alias Name are blank, the Path will be used as the column name.

Example

Suppose your XML record looks like this:

You could configure value selectors as follows:

  • Path: @transaction_id, Target Field: InvoiceNumber
  • Path: Customer/Name, Target Field: CustomerName
  • Path: Total, Target Field: InvoiceTotal

This will extract the invoice number, customer name, and total for each matched invoice node.

Properties

NameTypeDescription

See Also

Used By

Notification