Prerequisites
- A publicly accessible URL serving an XML file
- Knowledge of your XML structure (element names, field names)
Setup Steps
- Navigate to Knowledge > Sources > Create
- Select XML as the connector type
- Enter the URL of your XML feed
- Configure the field mapping (see Configuration below)
- Save and run a manual sync
Configuration
XML Format Example
Given this XML: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
<author><name> element becomes author_name). Element attributes are also captured.
Troubleshooting
No documents imported
No documents imported
- 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)
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
- Documents with empty title fields will get a generic “XML Record #N” title
Related
- Knowledge Connectors — All available connectors
- JSON Integration — Similar import for JSON files
- Knowledge Source Management — Managing sources
