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
when the server outputs the file, i creates a linefeed at each <% %> tag
Somewhere (in the xml-specs, if memory serves) is it written, that the <?xml?> tag must be the very first of the files content.
that's probably why your phone doesn't like your code.