How to import with a minimal XML file?

Editions: Ultimate, Enterprise, Campus, Module Media Import
Versions: 3.6.0+

The code shows a minimal XML that can be used for the import:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mediaimport PUBLIC "-//MEDIAIMPORT//DTD MEDIAIMPORT//EN" "http://www.vimp.com/mediaimport-1.0.dtd">

<mediaimport version="1.0">
  <media>
    <medium>
      <title>Maestro</title>
      <description>Maestro</description>
      <username>admin</username>
      <publication>public</publication>
      <categories>
        <category>entertainment</category>
      </categories>
    </medium>
  </media>
</mediaimport>

This works for the import (Backend -> Media -> Media-Import) from a "directory (on server)", via FTP or SSH server. You have to choose "XML files" to import with the minimal XML.

Important note: If you omit the <files> ... </files> block in your xml, the source file and the XML must have the same name (except of the file extension).

Example:

  • Maestro.xml
  • Maestro.wmv

Last update on 2017/02/15 by Admin.

Go back