9.2

Table Of Contents
When QuarkXPress Server is running on Mac OS, use a URL like the following:
http://localhost:8080/sample.qxp?modify=
file:MacHD:xml:createTable.xml
You can also supply a string that consists of valid XML commands. For example:
http://localhost:8080/sample.qxp?modify=
<LAYOUT><ID UID="Layout1"/><SPREAD><ID UID="1"/>
<TABLE OPERATION="CREATE" ROWS="5" COLUMNS="3">
<ID NAME="STATS"/><GEOMETRY PAGE="1"/><POSITION>
<TOP>5</TOP><LEFT>5</LEFT><BOTTOM>30</BOTTOM>
<RIGHT>30</RIGHT></POSITION></GEOMETRY>
</TABLE>SPREAD></LAYOUT></PROJECT>
To add a new table to an existing spread, use code like the following:
Spread spread = new Spread();
Table table = new Table();
Example, object
model
table.name = "textbox1";
Geometry geometry = new Geometry();
Position position = new Position();
position.top = "110";
position.left = "89";
position.bottom = "220";
position.right = "300";
geometry.position = position;
geometry.shape = "SH_RECT";
geometry.page = "1";
geometry.layer = "Default";
table.geometry = geometry;
table.rows = "2";
table.columns = "4";
table.maintainGeometry = "true";
table.operation = "CREATE";
spread.tables = new Table []{table};
Use the following object hierarchy:
ModifierRequest < Project < Layout < Spread < Table
To delete a table, provide the table's name or ID and set the operation attribute to "DELETE".
Using inline tables
The Inline Tables feature makes it easy to create an anchored table. Rather than having to
specify every attribute of a table, you can simply specify the content for a table as a series
of <TROW> and <ENTRY> elements in an <INLINETABLE> element, like so:
<STORY>
<INLINETABLE>
<THEAD>
<TROW>
<ENTRY>Year</ENTRY>
<ENTRY>2012</ENTRY>
<ENTRY>2013</ENTRY>
<ENTRY>2014</ENTRY>
<ENTRY>2015</ENTRY>
</TROW>
</THEAD>
<TBODY>
<TROW>
<ENTRY>Revenue</ENTRY>
<ENTRY>000</ENTRY>
<ENTRY>100</ENTRY>
76 | QXP SERVER 9.2 WEB INTEGRATION GUIDE
USING THE WEB INTERFACE