8.0

Table Of Contents
Working with metadata
You can now attach box-level metadata to a QuarkXPress project created from XML using the
Modifier DTD. For example, if you populate a picture box with a picture from a content management
system, you can capture the unique ID of that picture (and other information, such as the last-modified
date) to the box containing that picture. When you deconstruct such a project, you can read the
metadata and use it in any way you like (such as, for example, for tracking the usage of licensed
pictures).
Items to which metadata can be attached include picture boxes, text boxes, tables, lines, and text paths.
QuarkXPress Server metadata takes the form of key/value pairs. For more information, see the Modifier
DTD.
Constructing and modifying a project with metadata
To create a new box with metadata:
<BOX OPERATION="CREATE" BOXTYPE="CT_TEXT">
<ID NAME="box1"/>
<METADATA>
<VALUE KEY=”Asset” ><![CDATA[1234567890]]>
</VALUE>
<VALUE KEY=”Date” ><![CDATA[08.06.07]]>
</VALUE>
<VALUE KEY=”Password” ><![CDATA[Hello World]]>
</VALUE>
</METADATA>
<GEOMETRY SHAPE="SH_RECT">
<POSITION>
<TOP>5</TOP>
<LEFT>5</LEFT>
<BOTTOM>10</BOTTOM>
<RIGHT>10</RIGHT>
</POSITION>
</GEOMETRY>
</BOX>
In this example, a box called ‘box1’ will be created and have the following metadata associated with it:
Asset, 1234567890; Date, 08.06.07 and Password, Hello World.
Deleting metadata associated with a box
To delete metadata:
<BOX>
<ID NAME="BoxWithMetadata"/>
<METADATA>
<VALUE KEY=”Asset”></VALUE>
</METADATA>
</BOX>
Page 179