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. Go to Knowledge > Sources and click Create New Source
  2. Enter a name and select xml as the Source Type
  3. Enter the XML Feed URL and the Item Element
  4. Map the fields (see below)
  5. Click Save, then open the source and click Sync Source

Configuration

XML Format Example

Given this XML:
With Item Element item and the default title and ID fields, 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
Nested XML elements are flattened with underscores (e.g., a <author><name> element becomes author_name). Attributes are captured with an @ prefix, for example @id.

Troubleshooting

  • Check the URL returns valid XML
  • Check the item element name matches your XML structure
  • Check the URL is reachable from the internet. Private network addresses 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
  • Items with an empty title get a generic “XML Record #N” title