|Atomik Xport SE: Reference > Chapter 12 Extracting Images, Captions and Copyright Information||<< >>|
Publishers typically have captions and copyright information they wish to extract for their images. You can designate any sibling of your image element as the caption or copyright element by assigning its element role in your Ruleset Editor.
Since captions and copyright text apply to specific images, it is usually important to retain that association in your XML. The way to do this is to structure your DTD so that the image, caption and copyright information are siblings within a parent node. In the example below, the ‘media’ element collects the image (‘media’), followed by caption (‘media-caption’) and copyright (‘media-producer‘):
<!ELEMENT media (media-ref, media-caption, media-producer)>