8.0

Table Of Contents
XML import
Imports data into text boxes and picture boxes through XML and QuarkXPress Placeholders.
Parameters
thexmldoc
XML
Accepts well-formed XML as input and
applies those XML values to the
rendered project .
layout
string
Specifies the layout name or number to
render. Layout numbers start with 1;
layout=1 refers to the first layout in the
project . You can also specify the layout
name with this parameter.
paginate
XML
Accepts well-formed XML as input and
applies those XML values to the
rendered project. Creates pages based
on the number of records in the XML.
Response
Preview of the QuarkXPress project with a value in the data import XML tag
applied on boxes.
Alerts
Invalid XML String
HTTP Error #500
This alert is displayed when an invalid XML string is passed
as a value to the thexmldoc parameter.
What to do: Enter a correct XML string with the thexmldoc
parameter.
Logs
If the project is successfully rendered, a transaction success message is written to
the QuarkXPress Server Transaction Log file. The transaction entry consists of the
date and time of the request, the render type, the project name, the type of
response produced by the server, the size of the response returned in bytes, and
the client IP address.
The following is a sample of a transaction entry:
8/5/2005 18:11:54 - sample.qxp - Type: image/jpeg - Size: 65982 - 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 an error log entry:
8/9/2005 12:38:42 - Error - Error Code: 10396 - Invalid XML String.
Example GET
URL
http://localhost:8080/Sample.qxp?thexmldoc=<?xml version="1.0"?>
<BookReview><Book><Title>C:\Autumn.jpg</Title><Author> Brian Kernighan
and Dennis Ritchie</Author></Book></BookReview>
On MAC OS
: The URL format is:
http://localhost:8080/Sample.qxp?thexmldoc=<?xml version="1.0"?>
<BookReview><Book><Title>/Volumes/MacHD/Pictures/abc.tiff</Title><Autho
r> Brian Kernighan and Dennis Ritchie</Author></Book></BookReview>
Example, Object
Model
Request Object Names : XMLImportRequest
sdk.QRequestContext rc = new sdk.QRequestContext();
if(!this.DocumentSettings1.documentName.Text.Equals(""))
rc.documentName = this.DocumentSettings1.documentName.Text;
Page 94