[Cover] [Previous Section] [Next Section] [Index]

Current chapter: Introduction to HDML
Section 8 out of 67 total sections , Section 2 out of 7 sections in this chapter


Overview of HDML syntax

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.



Comments

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:



Structure

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:



Options

Many HDML statements allow you to specify options. Options appear before the closing angle bracket of a statement header and have the following syntax:

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.


[Cover] [Previous Section] [Next Section] [Index]

Current chapter: Introduction to HDML
Section 8 out of 67 total sections , Section 2 out of 7 sections in this chapter


1 Case does matter for HDML variable names, which you specify.
2 Chapters later in this manual describe how to use digests, which allow your service to package multiple HDML statements (decks) in a single HTTP response.
3 This manual uses the following style conventions in syntax statements: HDML keywords are uppercase and appear in bold; placeholders that you replace with your own text appear in italic; optional keywords appear in italic bold.
Copyright © 1999, Unwired Planet, Inc. All rights reserved.