Custom Web Publishing Guide

Table Of Contents
Accessing XML data with the Web Publishing Engine 27
Using the fmresultset grammar
The XML element names in this grammar use FileMaker terminology, and the storage of fields is separated
from the type of fields. The grammar also includes the ability to identify summary, calculation, and global
fields.
To use the fmresultset grammar, specify the following name of the fmresultset grammar in the URL requesting
the XML document from the Web Publishing Engine:
fmresultset.xml
For example:
http://192.168.123.101/fmi/xml/fmresultset.xml?-db=employees&-lay=family&-findall
Note When specifying the fmresultset grammar, be sure to use lowercase.
The Web Publishing Engine will generate an XML document using the fmresultset grammar. In the XML
document, the Web Publishing Engine will reference the document type definition for the fmresultset grammar
in the
<!DOCTYPE> instruction in the second line of the document, immediately after the <?xml...?> instruction.
The
<!DOCTYPE> instruction specifies the URL for downloading the DTD for the fmresultset grammar.
Description of elements in the fmresultset grammar
In the fmresultset grammar, the <datasource> element contains the table, layout, time-format, date-format,
total-count, and database attributes.
The date-format attribute of the <datasource> element specifies the format of dates in the XML document.
The time-format attribute of the <datasource> element specifies the format of times in the XML document.
The <metadata> element of the fmresultset grammar contains one or more <field-definition> and <relatedset-
definition>
elements, each containing attributes for one of the fields of the result set. These attributes specify
whether the field is an auto-enter field (“yes” or “no”), the maximum number of repeating values (max-repeat
attribute), whether it is a not-empty field (“yes” or “no”), whether it is a global field (“yes” or “no”), result
(“text,” “number,” “date,” “time,” “timestamp,” or “container”), type (“normal,” “calculation,” or
“summary”), and the field name (fully qualified as necessary).
Field Full form Short form
Year yyyy (4 digits) yy (2 digits)
Month MM (2 digits) M (1 or 2 digits)
Day dd (2 digits) d (1 or 2 digits)
Field Full form Short form
Hour (1 – 12) hh (2 digits) h (1 or 2 digits)
Hour (1 – 24) kk (2 digits) k (1 or 2 digits)
Minute mm
Second ss
AM/PM a