8.5

Table Of Contents
Working with metadata
You can attach box-level metadata to a QuarkXPress project created from XML using the
Modifier DTD. For example, if you import a picture from a content management system
into a box, you can store the unique ID of that picture (and other information, such as
the last-modified date) with the box containing that picture. When you deconstruct the
project, you can read the metadata (for example, to track the usage of licensed pictures).
You can attach metadata to 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.
To create a new box with metadata, use XML like the following. In this example,
QuarkXPress Server creates a box named "box1" and asssociates Asset, Date, and Password
key-value pairs with it.
<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" PAGE="1">
<POSITION>
<TOP>5</TOP>
<LEFT>5</LEFT>
<BOTTOM>10</BOTTOM>
<RIGHT>10</RIGHT>
</POSITION>
</GEOMETRY>
</BOX>
To delete metadata that is associated with a box, use XML like the following:
<BOX>
<ID NAME="BoxWithMetadata"/>
<METADATA>
<VALUE KEY="Asset"></VALUE>
</METADATA>
</BOX>
Working with hidden text
Hidden text, represented in Modifier XML by the HIDDEN element, allows XTensions
software developers to insert custom, non-printing data into a text flow. This hidden text
can be retained when QuarkXPress Server deconstructs and reconstructs QuarkXPress
projects. For more information, see the Modifier DTD .
<PARAGRAPH MERGE="false" PARACHAR="HARDRETURN"
PARASTYLE="001-TEXT">
<RICHTEXT MERGE="false">
The population of Iceland is 500,000,000.
</RICHTEXT>
<HIDDEN DATALEN="100" OPCODE="51434410"
OWNER="514344" TYPE="CHARACTERTYPE">
<RICHTEXT LANGUAGE="USEnglish" MERGE="false">
VGhpcyBpcyB0aGUgdGV4dCBvZiBhIENvcHlEZXNrIG5vdGU=
</RICHTEXT>
</HIDDEN>
<RICHTEXT MERGE="false">
Iceland is located north of the Equator.
</RICHTEXT>
</PARAGRAPH>
114 | QXP SERVER 8.5 WEB INTEGRATION GUIDE
USING THE WEB INTERFACE