Discussion Board

Results 1 to 2 of 2

Thread: WML and ASP

  1. #1
    Registered User
    Join Date
    Mar 2003

    WML and ASP

    Hi, I have been trying to learn wml. It has all been going well, untill I tried to combine asp and wml.

    I am using this code. Which works on a Nokia 8310 but not on anything else. no elmulators, no other phone I've tried not even a 8310e. Can anyone tell me whats going on?

    the file is saved as a .asp file on a wap enabled server

    <% @Language="VBScript" %>
    <% response.contenttype="text/vnd.wap.wml" %>
    <?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN""http://www.wapforum.org/DTD/wml12.dtd">
    <card id="home" title="Hello World">
    response.write "Hello World <br/>"
    response.write "Todays Date is: " & Date %>

    the error I get is 'the page was malformed' XML error - failed parsing document (before or at line1)

    I have tried it on there emulators
    Nokia Mobile Internet Toolkit 3.1
    Ericsson IDE 3.2.1


  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003

    RE: WML and ASP


    Try to add an empty space between the quotation marks in the doctype definition line:

    ...//DTD WML 1.2//EN" "http://www.wa...

    Kind regards,

    sami / Forum Nokia Developer Support

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts