WML Example
Dig deeper into the utilization of WML in this section by learning about the practical applications of WAP and WML.
*.WML files can only be read on WAP enabled devices. In any case, you should take a look at the sample WML code below. If you are going to program on WML then simply pattern your code to what you see below.
<?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card1>This is an example of an WML file. </card1> <card2>It is very similar to an XML file. </card2> </wml>
Since XML and WML are very similar, you can simply change the file from *.WML to *.XML and view it on any browser. Output on a browser should look something like this.
Practical Applications of WAP and WML
WAP and WML are very useful in the world out there. The following are examples of where WAP and WML are being used a lot nowadays.
- Buying airplane, train, and bus tickets.
- Checking in for a flight.
- Finding out the weather in a particular location.
- Finding out the traffic in a particular location.
- Looking for names, addresses, and phone numbers.
- Obtaining the latest news feeds.
- Getting the latest business data such as stock prices.
- Checking your e-mail absolutely anywhere.
www.southwest.com, At Southwest, you practically buy your plane ticket online, check in online, and if you have a portable printer, you can even print your boarding pass online! This is totally neat stuff for WAP and WML users.