Skip to main content
Import content from XML feeds by fetching an XML file from a URL and converting each item element into a knowledge document. Useful for product catalogs, RSS-style feeds, or any structured XML data.

Prerequisites

  1. A publicly accessible URL serving an XML file
  2. Knowledge of your XML structure (element names, field names)

Setup Steps

  1. Navigate to Knowledge > Sources > Create
  2. Select XML as the connector type
  3. Enter the URL of your XML feed
  4. Configure the field mapping (see Configuration below)
  5. Save and run a manual sync

Configuration

XML Format Example

Given this XML:
With default settings (item_element: "item", title_field: "title", id_field: "id"), this creates two documents:
  • Document 1: Title “Product Name”, content includes description and category
  • Document 2: Title “Another Product”, content includes description and category

What Gets Imported

Each item element in the XML becomes one knowledge document:
  • Title: The value of the configured title field
  • Content: All other fields formatted as a readable list (or only the fields specified in “Content fields”)
  • Metadata: All field values are stored as document metadata for search
Nested XML elements are flattened with underscores (e.g., a <author><name> element becomes author_name). Element attributes are also captured.

Troubleshooting

  • Verify the URL returns valid XML
  • Check that the item element name matches your XML structure
  • Ensure the URL is publicly accessible (private/localhost URLs are blocked)
  • Check the content fields configuration — if specific fields are listed, only those are included
  • Verify field names match the XML element names exactly
  • Check that exclude field prefixes aren’t filtering out wanted content
  • Verify the title and ID field names match your XML structure
  • Documents with empty title fields will get a generic “XML Record #N” title