The NewsML import processor is different from all the other processors in that it imports data into the Content Store rather than exporting it, and is therefore not driven by Content Store events. Instead, the NewsML import processor monitors specified import folders and imports any NewsML-G2 files that appear in them.
- type: newsml-import target: publication: tomorrow-online section: ece_incoming content-types: images: picture stories: story watch_dirs: - path: /var/spool/newsml/import files: - *.xml - *.ml download_dir: /tmp/cue/zipline/newsml
type must be set to
newsml-import. The other entries are:
Contains two properties specifying the publication name and section unique name to be used to identify the home section of created content:
The name of the publication to import into.
The unique name of the section, in the targeted publication, to use as home section of the imported content.
Contains two properties specifying the content types to be used for importing content to the target publication:
The name of the content type to be used for importing images.
The name of the content type to be used for text content. Only storyline content types are supported, not classic rich text-based content types.
An array, each element of which specifies a folder in which to look for NewsML files to import. Each element may contain the following properties:
The absolute path of a folder in which to look for NewsML files.
An array of file name patterns to use when looking for files to import.
The absolute path of a folder to be used by CUE Zipline to hold temporary files downloaded from the Content Store during the import process.