9.2

Table Of Contents
Using XML modify
The modify parameter lets you modify a QuarkXPress project using XML.
This topic covers the modify parameter when it is used without the construct namespace.
You can also use the modify parameter to specify an XML file to use when constructing
a project; for more information, see "Constructing a project".
The xml namespace takes two arguments: the name of the project to be modified, and a
modify parameter with the string or the path of the XML file that describes how to create
the project:
http://QXPServer8:8080/project1.qxp?modify=
file:path to XML file on server http://QXPServer8:8080/
project1.qxp?modify=XML string
You can also modify QuarkCopyDesk articles. To modify a QuarkCopyDesk article:
http://localhost:8080/copydesk/abc.qcd?modify=
file:XMLfile.xml
Modifier DTDDTD
Lets you specify an XML file or string that describes how to create a
project. The path can be absolute or a relative path in the document
pool. Use the file: indicator to specify the path.
String
modify
Parameters
Note that you can also include an XML file as part of a multipart HTTP
request.
http://QXPServer8:8080/project1.qxp?modify=file:sample.xml
Example GET
URL
This XML deletes page 2 of a QuarkXPress layout:
<PROJECT>
<LAYOUT>
Example XML
<ID NAME="Layout 1" />
<SPREAD>
<ID UID="1" />
<PAGE OPERATION="DELETE">
<ID UID="2" />
</PAGE>
</SPREAD>
</LAYOUT>
</PROJECT>
The updated QuarkXPress project.Response
If the request succeeds, a transaction success message is written to the QuarkXPress Server
transaction log file. For example:
Logs
8/3/2005 11:27:42 jpeg/sample.qxp Type: image/jpeg Size: 31715 Client: 127.0.0.1
If an alert is displayed, an error message is written to the QuarkXPress Server error log. The following
is a sample of the error log entry:
8/10/2005 10:39:07 Error Error Code: 10339 The specified file failed to load in the picture
box.
Modifying box properties and content
To modify box properties and content, use the following parameters in the Modifier DTD:
QXP SERVER 9.2 WEB INTEGRATION GUIDE | 67
USING THE WEB INTERFACE