Prerequisites
- A publicly accessible URL serving an XML file
- Knowledge of your XML structure (element names, field names)
Setup Steps
- Go to Knowledge > Sources and click Create New Source
- Enter a name and select
xmlas the Source Type - Enter the XML Feed URL and the Item Element
- Map the fields (see below)
- Click Save, then open the source and click Sync Source
Configuration
XML Format Example
Given this XML: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
<author><name> element becomes author_name). Attributes are captured with an @ prefix, for example @id.
Troubleshooting
No documents imported
No documents imported
- 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
Missing content
Missing content
- 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
Wrong titles or IDs
Wrong titles or IDs
- Verify the title and ID field names match your XML structure
- Items with an empty title get a generic “XML Record #N” title
Related
- Knowledge Connectors: all connectors
- JSON Import: similar import for JSON files
- Knowledge Source Management: managing sources
