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

Query XML

Value Extractor Grooper.EDI

Extracts values from XML documents using XPATH queries, enabling structured data extraction from XML content in Grooper.

Remarks

QueryXML is a flexible extractor for reading values from XML documents using XPATH selectors. It is designed for scenarios where you need to pull structured data from XML attachments or content associated with a Batch Folder.

How It Works

QueryXML operates by applying an XPATH selector to the XML content of a document or batch folder. The selector identifies which nodes to extract. You can further refine the results by filtering node text, extracting attribute values, and parsing substrings using regular expressions.

The extraction process follows these steps:

  1. The XPATH selector is used to locate relevant nodes in the XML.
  2. Optionally, a filter pattern can restrict results to nodes whose text matches a regular expression.
  3. You may extract either the node's inner text or a specific attribute value.
  4. A parsing pattern can be applied to extract specific substrings from the matched content.

Typical Use Cases

  • Extracting invoice numbers, dates, or codes from XML-based documents.
  • Reading customer or product data from structured XML feeds.
  • Integrating Grooper with external systems that provide XML output.
  • Parsing complex XML structures to retrieve only the data needed for downstream processing.

Example

To extract all invoice numbers from an XML document:

Use the selector: //Invoice/InvoiceNumber

This will return: 12345, 67890

Configuration Workflow

  1. Set the XPATH selector to target the nodes you want to extract.
  2. Optionally, add a filter pattern to include only nodes with specific text.
  3. Specify an attribute name if you want to extract attribute values.
  4. Use a parsing pattern to extract substrings from the node text or attribute value.

Integration and Output

QueryXML is typically assigned to a Data Field or other data element in Grooper's data model. The extracted values are returned as Data Instances, which can be validated, transformed, or exported as needed.

Diagnostics

Query XML logs diagnostic information about matched nodes, extracted values, and details about filtering and parsing actions. This helps troubleshoot extraction issues and optimize configuration.

For more information on XPATH syntax, see XPATH Syntax. For regular expression help, see Regular Expression Language - Quick Reference.

Properties

NameTypeDescription

See Also

Used By

Notification