8.0

Table Of Contents
a. Deconstruct a QuarkXPress project using the following code snippet:
QManagerSDKSvcService svc = new QManagerSDKSvcService()
Project proj = svc.getDOM("document.qxp");
b. Alter the project by manipulating the XML.
c. Pass the modified Project instance to
ConstructRequest to create a new QuarkXPress project using the following code
snippet:
ConstructRequest cnstrq = new ConstructRequest();
cnstrq.project = proj;
QRequestContext rc = new QRequestContext();
rc.request = cnstrq;
QuarkXPressRenderRequest qxprq = new QuarkXPressRenderRequest();
cnstrq.request = qxprq;
Notes
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:
http://localhost:8080/construct/project1.qxp?modify=file:path to XML file on
server
http://localhost:8080/construct/project1.qxp?modify=<xml-string>
Related topics:
The Modifier DTD
About XML deconstruct and construct
xml
Deconstructing a project
Constructing a project
Page 154