8.0

Table Of Contents
When you use the
xml namespace, QuarkXPress Server returns an XML file that represents the deconstructed project.
This XML file adheres to the Modifier DTD. This chapter provides a general introduction to working
with this DTD, and goes into detail about some of the less obvious aspects of the process.
The
construct namespace takes two arguments: The name of the project to be created and a modify
parameter that points to the XML file or string that describes how to create the project. These two
arguments display as follows:
http://QXPServer8:8080/construct/project1.qxp?modify=file:path to XML file on server
or:
http://QXPServer8:8080/construct/project1.qxp?modify=XML string
Note: There is a length limitation of 4096 characters on URLs, so you will probably want to use an XML
file rather than an XML string.
Note: If you are using QuarkXPress Server Manager, you can send a similar command with a
QuarkXPress Server Manager URL or through Web services.
Note that the modify parameter still lets you modify existing projects. If you are modifying an existing
document, however, you should not use the construct namespace.
http://QXPServer8:8080/project1.qxp?modify=file:path to XML file on server
or:
http://QXPServer8:8080/project1.qxp?modify=XML string
Construct vs. modify
It's important to understand that although the construct namespace uses the same DTD that you use
when you modify an existing project, the
construct namespace uses it differently.
When you use the construct namespace, the XML you pass simply contains a description of everything in
the document you want to create — much as an HTML file describes a page you want to display in a
browser. There is no need to use a command and create elements such as ADDCELLS,
OPERATION, and MOVERIGHT; you simply describe each item in the layout with elements such as
<BOX> and <TABLE>, and specify each item's position with the
<POSITION> element type.
When you use the modify attribute without the
construct namespace, however, the XML you pass must contain commands that show how you want
QuarkXPress Server to modify the project.
Related topics:
The Modifier DTD
xml
construct
Deconstructing a project
Constructing a project
Working with pages and spreads
Working with layers
Working with boxes
Working with pictures
Working with text
Working with tables
Working with Composition Zones
Using XSL transformation
Page 145