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#

FieldTypeRequiredDefaultWhat it does
XML File URLTextNo—The XML file to load from URL.
XML DocumentChoiceNo—Select an XML document from your uploaded files.
Search QueryTextNo{input}The search term to look for in the XML document.
Query ExpressionTextNo(empty)Pandas-like query expression to filter the XML data (e.g., ‘Price < 100 and Category == “Electronics”’).
Element PathsTextNo(empty)Specific XML elements to search in (comma-separated, e.g., ‘product,category’). If empty, all elements will be searched.
Max ResultsNumberYes50Maximum number of results to return.
Case SensitiveYes/NoNoOffWhether the search should be case sensitive.
TimeoutNumberNo5The timeout in seconds for fetching XML from URL.
Cache TTLTextNo2 weeksCache 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 ByTextNo(empty)Element(s) to sort by. For multiple elements, separate with commas. Add a minus sign (-) for descending. Example: ‘price,-date’
Group ByTextNo(empty)Element(s) to group by. For multiple elements, separate with commas. Must be used with Aggregate Function.
Aggregate FunctionTextNo(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 FieldTextNo(empty)Add a calculated field. Format: ’new_field_name:expression’. Example: ‘discount:price*0.1’
String FilterTextNo(empty)Advanced string filtering with regex. Format: ’element:pattern[:case_sensitive]’. Example: ‘description:premium|luxury:false’

Outputs#

OutputType
Row CountAny
Column CountAny
ColumnsAny
Matched RowsAny
Search ResultsAny
Operations AppliedAny

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.