This section provides a brief overview of HDML syntax. For a more complete description of HDML syntax and detailed reference information on the HDML language, see the HDML Language Reference provided with the UP.SDK.
Like HTML, HDML uses the printable 8-bit character set. The UP.Link ignores the case of HDML keywords1. It also converts one or more contiguous newlines, carriage returns, tabs, or spaces to a single space. The HDML examples in this manual are formatted with newlines and tabs to make them easier to read. However, this formatting is not required for the HDML to be valid. In fact, the UP.Link removes it before sending the HDML to the phone.
HDML allows you to include comments, which the UP.Phone ignores. A comment begins with <-- and ends with -->. For example, the following is a comment:
The smallest unit of HDML your service can send to an UP.Link server is a single <HDML> statement or deck2. The high-level syntax for the <HDML> statement is:
<HDML VERSION=version_num deck_options>
actions
cards
</HDML>3
Many HDML statements allow you to specify options. Options appear before the closing angle bracket of a statement header and have the following syntax:
option1=value1 option2=value2 option3=value3 ...
Each option-value pair is separated by white space (tab, newline, carriage return, or space characters). It is recommended that you enclose all option values in single or double quotation marks (") or ('). If an option value contains spaces, quotation marks are required.
White space characters are not allowed between the option, the equal sign, and the value. For a complete list of the available options for an HDML statement, see the HDML Language Reference.