Home » XML Basics » 06 - Wireless XML
6

What is WAP and WML

Aside from knowing what WAP and WML stand for, you will learn how both of these technologies are used in mobile and wireless devices.

WAP stands for Wireless Application Protocol. It is used for applications and internet browsing through mobile devices such as phones, PDA's, and the like. WML is the Wireless Markup Language, inherited from HTML. If you are going to view web pages through WAP then the files must be in the WML format. WML is similar to XML so you shouldn't have any trouble learning it.

WML Guidelines

WML and XML are very similar. Among the rules that you will follow in WML are:

  1. You can make your own tags.
  2. Tags are case sensitive.
  3. Tags must always be closed.
  4. Tags must be properly nested.
  5. WML pages are referred to as decks, composed of text, links, images, etcetera... referred to as cards.
  6. You can use any text editor to make a WML file.
  7. Start a WML file by declaring it as XML like this. <?xml version="1.0"?>
  8. Start a WML file by declaring its DTD (Document Type Definition) to this reference: www.wapforum.org/DTD/wml_1.1.xml
  9. Start a WML file by making the root tag <wml> and the close root tag as </wml>.
  10. Save the file in *.WML and check it out through a WAP enabled device.

www.motorola.com,Below is an example of a handheld device that is capable of WAP/WML technology. The Motorola P7389 is a very useful handheld device for professionals on the go.