Supported object types and relationships

Build 1501 on 14/Nov/2017  This topic last edited on: 5/Sep/2011, at 12:27

The XML file listing the objects to import can contain any combinations of the following: ‘document’, ‘story’, ‘image’, ‘video’ and ‘audio’ (previously it was necessary to have always at least one ‘document’ and then one or more ‘story’ and ‘image’). So the following are all legal files to import – a single image:

  <root>

    <image id="image0001">

      <data>IPTC.jpg</data>

    </image>

  </root>

a mix of audios and video:

  <root>

    <audio id="audio001">

      <data>07 Get It Hot.mp3</data>

    </audio>

    <video id="video001">

      <data>VIDEO_002.MP4</data>

    </video>

  </root>

a document with related stories and images (as before):

  <root>

    <document id="doc0" name="pallino.indd">

      <data mime="application/x-indesign">pallino.indd</data>

      <issue publication="Demo" date="2011-01-30" name="Main"/>

      <variants>

        <variant name="PDF_[Smallest File Size]">

          <data mime="application/pdf">pallino.pdf</data>

        </variant>

      </variants>

      <pages>

        <page name="1">

          <preview mime="image/jpeg">Pages/1.jpg</preview>

        </page>

        <page name="2">

          <preview mime="image/jpeg">Pages/2.jpg</preview>

        </page>

      </pages>

      <stories>

        <ref idRef="story257"/>

      </stories>

      <images>

        <ref idRef="img493"/>

      </images>

    </document>

    <story id="story257">

      <data mime="text/plain">Stories/257.txt</data>

    </story>

    <image id="img493" name="iptc.jpg">

      <data mime="image/jpeg">Links/iptc.jpg</data>

    </image>

  </root>

It is also possible to specify relationships between stories and images, videos and audios, e.g.:

  <root>

    <story id="story0001" name="my story">

      <data>storyText.xml</data>

      <images>

        <ref idRef="0001">

          <caption>Image caption</caption>

        </ref>

      </images>

      <videos>

        <ref idRef="0001">

          <caption>Video caption</caption>

        </ref>

      </videos>

      <audios>

        <ref idRef="0001">

          <caption>Audio caption</caption>

        </ref>

      </audios>

    </story>

  

    <image id="0001">

      <data>IPTC.jpg</data>

    </image>

 

    <video id="0001">

      <data>VIDEO_002.MP4</data>

    </video>

 

    <audio id="0001">

      <data>07 Get It Hot.mp3</data>

    </audio>

  

  </root>

will create a story, an image, a video and an audio, and the story will reference the image, video and audio in its ‘objs’ attribute – with the specified captions. (The ‘caption’ element in the reference is optional).

See also

Publication information