What is the program structure of WMLScript?

What is the program structure of WMLScript?



- WMLScript is made up of two parts, the first one is known as document prolog and another one is body.

- WMLScript is written as:

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
"http://www.wapforum.org/DTD/wml12.dtd">
<wml>
<card> //Your code here
</card>
...more cards...
</wml>

- The first line defines the version and the information regarding the XML document.

- The second line deals with the document type definition and the URL of the document.

- DTD explains the information about the XML and the definitions associated with the WML.
Post your comment