Retrievers
XML Document
Search within XML documents using text search or pandas-like query expressions.
Category: Retrievers · Plans: Trial, Starter, Pro, Premium, Enterprise · Type: XMLDocument
Inputs#
| Field | Type | Required | Default | What it does |
|---|---|---|---|---|
| XML File URL | Text | No | — | The XML file to load from URL. |
| XML Document | Choice | No | — | Select an XML document from your uploaded files. |
| Search Query | Text | No | {input} | The search term to look for in the XML document. |
| Query Expression | Text | No | (empty) | Pandas-like query expression to filter the XML data (e.g., ‘Price < 100 and Category == “Electronics”’). |
| Element Paths | Text | No | (empty) | Specific XML elements to search in (comma-separated, e.g., ‘product,category’). If empty, all elements will be searched. |
| Max Results | Number | Yes | 50 | Maximum number of results to return. |
| Case Sensitive | Yes/No | No | Off | Whether the search should be case sensitive. |
| Timeout | Number | No | 5 | The timeout in seconds for fetching XML from URL. |
| Cache TTL | Text | No | 2 weeks | Cache the content of the XML file for defined amount of time. Options: No cache, 5 minutes, 30 minutes, 1 hour, 12 hours, 1 day, 1 week, 2 weeks, 1 month, 3 months, 6 months, 1 year |
| Sort By | Text | No | (empty) | Element(s) to sort by. For multiple elements, separate with commas. Add a minus sign (-) for descending. Example: ‘price,-date’ |
| Group By | Text | No | (empty) | Element(s) to group by. For multiple elements, separate with commas. Must be used with Aggregate Function. |
| Aggregate Function | Text | No | (empty) | Aggregation function(s) when using Group By. Format: ’element:function’. Supported: sum, mean, min, max, count, median. Example: ‘price:mean,quantity:sum’ |
| Add Calculated Field | Text | No | (empty) | Add a calculated field. Format: ’new_field_name:expression’. Example: ‘discount:price*0.1’ |
| String Filter | Text | No | (empty) | Advanced string filtering with regex. Format: ’element:pattern[:case_sensitive]’. Example: ‘description:premium|luxury:false’ |
Outputs#
| Output | Type |
|---|---|
| Row Count | Any |
| Column Count | Any |
| Columns | Any |
| Matched Rows | Any |
| Search Results | Any |
| Operations Applied | Any |
Use as an agent tool#
Tool name: search_xml_document
Search inside an XML document. Fields that the flow has locked are removed from this tool’s schema; only supply values for fields that are present here.