XML Import¶
- Table of contents
- XML Import
Available since 2.15.37.8, 2.15.42
Automatic import of news allows to import text news from XML files of any tag.
Use XML Parsing field on Source folder window to describe source tags. Describe, which fields should be read from which tags using field names and tag’s XPath v. 1.0. Each field on separate line.
Example for AFP news XML is on the screenshot:
AGENCY_PRIORITY=/NewsML/NewsItem/NewsManagement/Urgency/@FormalName
BODY=/NewsML/NewsItem/NewsComponent/ContentItem/DataContent/nitf/body/body.content
NAME=/NewsML/NewsItem/NewsComponent/NewsLines/HeadLine
There are following fields, available for import
- NAME - item title
- BODY - item body text
- SENDER
- RECEIVER
- AGENCY_NAME
- AGENCY_CATEGORY
- AGENCY_SERVICE
- AGENCY_PRIORITY
- AGENCY_TAG
All fields, except of first two not stored in DB and can be used in message filters only.