XML Connector is used to index the content of XML files by parsing all the information within the tags available in the XML page/file. Header tags will be considered as meta tags in SearchBlox and body information will be taken as SearchBlox document’s description/content.
# **Configuring SearchBlox**
Before using XML Connector, install SearchBlox successfully and create a **Custom Collection**.
# **Configuring XML Connector**
All the files related to the connector should be available in the same folder that is, all files should be extracted into the same folder.
The XML file should have data in the following format for the connector to work that is, the XML file should have the record tags within which the URL to be indexed should be specified along with other meta data content within metadata tags.
Contact [[email protected]](🔗) to request the download link for SearchBlox XML connector. The following steps include the example paths for both Windows as well as Linux. In Windows, the connector would be installed in the _C drive_. In Linux, the connector has to be installed in _/opt_.
## **Steps to Configure and Run the XML Connector**
Download the SearchBlox XML connector. Extract the downloaded zip to a folder.
Unzip the archive under _C:\* or _/opt*.
In Linux, make sure that necessary permissions have been provided to the folder /opt by using the CHMOD command for writing log files and executing jar files.
Configure the xmlconfig.yml file which includes the directory path of the XML file and SearchBlox properties as listed in the following:
|Column Title||Column Title|
|api-key||SearchBlox API Key|
|colname||The name of the custom collection in SearchBlox.|
|data-directory||Data Folder along with filename of XML from where the data needs to be fetched|
|log-file-maxSize||Megabytes after which new file is created|
|log-file-maxBackup||Number of backups after which log file should be deleted|
|log-file-maxAge||Number of days after which log files should be deleted|
The content details of xmlconfig.yml are provided here:
Start running the xmlconnector.exe file for Windows and ./xml_connectorLinux64 in Linux