Custom Web Publishing Guide

Table Of Contents
Accessing XML data with the Web Publishing Engine 31
<FIELD EMPTYOK="YES" MAXREPEAT="1" NAME="artlocations::Date" TYPE="TEXT" />
<FIELD EMPTYOK="YES" MAXREPEAT="1" NAME="artistbio::birthdate" TYPE="DATE" />
</METADATA>
<RESULTSET FOUND="1">
<ROW MODID="5" RECORDID="1">
<COL>
<DATA>Village Market</DATA>
</COL>
<COL>
<DATA>Camille Pissarro</DATA>
</COL>
<COL>
<DATA>/fmi/xml/cnt/data.jpg?-db=art&amp;-lay=web&amp;-recid=1&amp;-field=Image(1)
</DATA>
</COL>
<COL>
<DATA>Impressionist</DATA>
<DATA>French</DATA>
</COL>
<COL>
<DATA>Home</DATA>
<DATA>Restoration</DATA>
</COL>
<COL>
<DATA>1/1/2001</DATA>
<DATA>12/15/2001</DATA>
</COL>
<COL>
<DATA>7/10/1830</DATA>
</COL>
</ROW>
</RESULTSET>
</FMPXMLRESULT>
The order of the <COL> elements corresponds with the order of the <FIELD> elements in the <METADATA>
element—for example, where the “Title” and “Artist” fields are listed in the
<METADATA> element, “Village
Market” and then “Camille Pissarro” are listed in the same order in the
<RESULTSET> and <ROW> elements.
Description of elements in the FMPXMLLAYOUT grammar
In the FMPXMLLAYOUT grammar, the <LAYOUT> element contains the name of the layout, the name of the
database, and
<FIELD> elements for each field found in the corresponding layout in the database. Each <FIELD>
element describes the style type of the field, and contains the VALUELIST attribute for any associated value
list of the field.
The <VALUELISTS> element contains one or more <VALUELIST> elements for each value list found in the
layout—each including the name of the value list and a
<VALUE> element for each value in the list.