ASP
  Home arrow ASP arrow HDML or WML? By Christina Biggs
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
Moblin 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP

HDML or WML? By Christina Biggs
By: aspfree
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 4
    2003-01-01

    Table of Contents:

    Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

      So you've heard of HDML and you've heard of WML, but you don't know the differences, and you don't know which to use. Perhaps you're already using one and thinking of switching to the other. Perhaps you've heard that they are the same (as I first did). Let's clear up some of this confusion. First, some back ...

     


    So you've heard of HDML and you've heard of WML, but you don't know the differences, and you don't know which to use. Perhaps you're already using one and thinking of switching to the other. Perhaps you've heard that they are the same (as I first did). Let's clear up some of this confusion.

    First, some background information. In May of 1997 Unwired Planet, a member of the World Wide Web Consortium (W3C), submitted a request to the W3C for the HDML (Handheld Device Markup Language) Specification. The full specification can be found at www.w3.org. Although the submission was acknowledged by the W3C, it is still considered a "working draft" and no further enhancements have been made since its inception. In June of 1999 the WAP Forum, currently enrolling over 200 members, released WML (Wireless Markup Language) v1.1 and shortly after, it released v1.2 in November of 1999. The most recent WML Specification can be found at www.wapforum.org.

    Both languages share the same basic programming model and functionality; however, there are some notable differences to discuss. The main difference is that WML is XML-based, while HDML is not. The main benefit of being XML-based is that a company can use commercially available XML tools to generate, parse and manipulate WML, and they can also user XSL/XSLT to construct WML decks from XML meta-languages.

    Another major difference between HDML and WML is that HDML does not allow scripting, (sorry JavaScripters), while WML allows it's own version of JavaScript, called none other than WMLScript. WMLScript allows the programmer to check the validity of user input, access other facilities on the device (make a call on a phone, add a number to the phone book, etc.), generate messages and dialogs, and other device-specific tasks. HDML has the functionality to do most of the same tasks; however, using WMLScript reduces overall network traffic by performing the task locally.

    HDML does not have a DTD (Document Type Definition) while WML does. As expected, there are also other smaller functionality and syntax differences such as WML's intrinsic events and the ways in which variables are set and passed.

    Feature

    HDML

    WML

    XML-based

    No

    Yes

    DTD available

    No

    Yes

    Scripting

    None

    WMLScript

    Display Cards

    Yes

    Yes

    Choice/Select Cards

    Yes

    Yes

    Entry/Input Cards

    Yes

    Yes

    Nodisplay Cards

    Yes

    Yes

    Images in Text and Anchors

    Yes

    Yes

    Variables

    Yes

    Yes

    Deck Access Control

    Yes

    Yes

    Deck Cache Control

    Yes

    Yes

    Timers

    No

    Yes

    Multiple Choice Lists

    No

    Yes

    Bookmarks

    Yes

    No*

    Nested Activities

    Yes

    No**

    Images in Labels and Choices

    Yes

    No**

    Mobile Originated Pre-fetch

    Yes

    No**

    Key Accelerators for Links

    Yes

    No**




        * UP.Browser supports this feature via WML meta tag
        ** Supported by Up.Browser 4.0 via Phone.com WML extended tag

    So which language is the most promising pick for the future? Based on the aforementioned facts, I'd have to say that WML is going to live much longer and go farther than HDML. Unfortunately, I think Unwired Planet came out with HDML just a tad before its time. When the HDML Spec was released, XML was so new, Unwired Planet did not know enough about it to make HDML based upon it. Although the Phone.com's UP.Link platform will continue to support applications written in HDML, they are recommending to its users to move to WML. Remembering this and all the other limitations of HDML, I think WML, or some form thereof, will stick around to see the future of WAP.

    In Europe and Japan, some WAP devices already do not accept the HDML format. In the US and Canada many of the commercially available CDMA and CDPD phones only support HDML. It is most likely that the future US and Canadian phones will all support WML also. Fortunately, it is not difficult to convert HDML to WML and the learning curve should be minimal.


    References:

    W3Schools.com
    WAP Forum
    W3C Submissions
    Phone.com


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

    More ASP Articles
    More By aspfree

     

    IBM® developerWorks developerWorks - FREE Tools!


    Be the first to hear about i5/OS V6R1!

    Hold your calendar on January 30, 2008 for this free webcast on the new i5/OS. Rational's Enterprise Modernization products will be discussed at this webcast as they help to drive the application development environment for this new System i OS. <br />And learn how i5/OS will take you to the next step of efficient, resilient business processing. You will hear about the new i5/OS capabilities as it will be the most significant i5/OS release in years. If you cannot join the webcast on 1/30/08 you can still use this link to listen to the replay.<br />
    FREE! Go There Now!


    Build Forge Express demo: Enabling software delivery excellence for small and midsized businesses

    This demonstration gives you an overview of IBM® Rational® Build Forge Express Edition, a global offering that provides a framework to automate and execute software processes. Rational Build Forge provides a software assembly line that can support all of your tools, technologies, and platforms so you can achieve a repeatable, reliable, and traceable build and release process.
    FREE! Go There Now!


    NEW! A Layered approach to delivering security-rich Web applications

    As businesses grow increasingly dependent upon Web applications to provide services to customers, employees and partners, these complex applications become more difficult to secure. Although traditional security solutions protect Internet infrastructure layers, they do not guard against HTTP and HTML attacks. Many organizations that conduct security testing still deploy applications that allow attackers to manipulate their logic and wreak havoc on their business. To mitigate this risk, development and delivery teams must address Web application security throughout the lifecycle, addressing the many layers detailed in this paper.
    FREE! Go There Now!


    NEW! Accelerating Software Innovation on i on Power Systems

    Attend this launch webcast with Scott Hebner, Vice President of IBM Rational Marketing and Strategy, for an overview of Rational’s new software offerings and resources to help modernize and accelerate software innovation on i on Power Systems – while ensuring past application investments are protected and continue to grow. Learn how these solutions are helping customers extend their core i5/OS solutions toward modern architectures such as SOA and web technologies to deliver business improvements that stand the test of time.
    FREE! Go There Now!


    NEW! Download the free Web Application Security eKit

    Discover how IBM Rational AppScan Standard Edition can help you detext vulnerabilities in your web applications in the Web Application Security eKit. IBM Rational AppScan is a leading suite of automated web application security solutions that scan and test for common Web application vulnerabilities. The new Web Application Security eKit provides you with valuable resources, including white papers, demos, and additional information on the benefits of testing your Web applications.
    FREE! Go There Now!


    NEW! IBM Enterprise Modernization Sandbox for System z: Architecture

    Analysts, architects, and developers who have existing COBOL or PL/I skills and want to extend those skills to deploy new workloads on the mainframe can use the IBM Enterprise Modernization Sandbox for System z to find hands-on walkthroughs of common real world scenarios. The scenarios provide examples of how to rapidly design, create, assemble, test, and deploy high-quality Web, Web services, portal, and SOA applications for IBM CICS, IBM IMS, and IBM WebSphere Application Server.
    FREE! Go There Now!


    NEW! Maintaining QoS and Process Integrity in an SOA Environment

    This webcast outlines the best practices that must be instituted to gain the maximum benefit from SOA while maintaining high quality of service. Whether you are deploying new applications or managing and monitoring your existing infrastructure, learn how you can ensure high quality of services with SOA based solutions from IBM. All registrants who attend this live Web Seminar will receive complimentary access to a white paper titled “Maintaining QoS in an SOA Environment”.
    FREE! Go There Now!


    NEW! Rational Talks to You: Scott Ambler on being agile in a global development environment

    Join this Rational Talks to You teleconference on December 6 at 1:00 pm ET to participate in an agile application development discussion and get your questions answered on using IBM Rational Method Composer in a distributed environment.Get your questions answered!
    FREE! Go There Now!


    NEW! Section 508 of the U.S. Rehabilitation Act: Web accessibility compliance

    Because access to government information continues to be an area of concern for many U.S. citizens with disabilities, the U.S. government enacted Section 508 of the Rehabilitation Act in 2001 to ensure that government agencies create accessible Web content, enabling all citizens to access the information they need. A fully accessible Web site makes Web content accessible to all individuals, including those with disabilities, who may be accessing Web content via a variety of user agents. Common user agents include standard Web browsers, text-only browsers, assistive devices and mobile devices such as cell phones or personal digital assistants (PDAs).
    FREE! Go There Now!


    NEW! The role of integrated requirements management in software delivery

    This paper is about the critical role that a discipline called integrated require­ments management can play in helping to ensure that your business goals and IT investments are continuously aligned—whether you are sourcing, integrat­ing, building or maintaining software. It also looks at ways that automated IBM Rational® products can work together to help you use requirements in the very best way.
    FREE! Go There Now!



    All FREE IBM® developerWorks Tools!

    ASP ARTICLES

    - ADO for the Beginner
    - ADO.NET 101: Data Rendering with a DataGrid ...
    - Introducing SoftArtisans OfficeWriter 3.0 En...
    - Getting Remote Files With ASP
    - The Real Basics of Functions in ASP
    - Enhancing Readability with ASP
    - Mimicking PHP's String Formatting Functions
    - Windows Server Hacks 12, 77, and 98
    - How to Sort a Multi-Dimensional Array
    - Developing an Information Management Tool wi...
    - What are Active Server Pages?
    - Getting Remote Pages with ASP
    - FTP’ing Files with ASP
    - Apply Single-Sign-On to Your Application
    - Easy Error Management





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway