WML » Tags » wml

Syntax:
<wml> ... </wml>

The wml tag delimits the beginning and end of an XML document. (In this regard, it essentially performs the same duties as the html tag does for an HTML document.) This tag also serves as a container for all of the tags, attributes, tables, images, links, and texts associated with a single deck of cards. (Remember that the card is the equivalent of a page and that a collection of cards is referred to as a deck.)

The wml element can contain only one optional nested head element, only one optional nested template element, and one or more number of nested card elements. Each of these three nested elements can, in turn, contain various other nested tags that allow you to create an XML document layout to suit your needs.
 
Nested Tags:  card  head  template

Examples

Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.WAPforum.org/DTD/wml_1.1.xml">
<wml>

<card id="card1" title="Card 1">
   <do type="accept">
      <go href="#card2" />
   </do>
   <p>
      Please Click Accept
   </p>
</card>

<card id="card2" title="Card 2">
   <p>
      DevGuru is great!
   </p>
</card>

</wml>
Language(s): WML

See Also: