|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
WAP Error
I'm using a program called SwitchOff which lets me shutdown my computer through WAP. I have a Sony Ericsson T610 which has WAP 2.0, the shutdown requires 1.1. SwitchOff uses a port, and I got all that figured out. Ericsson just gives me an error, but when I try an emulator, the emulator gives me a real error:
Bad WML syntax. 'Fatal Error. Ln 1, Col 1 The main XML document cannot be empty'. What does that mean? |
|
#2
|
|||
|
|||
|
index.wml:
Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="Main" title="Switch Off">
<p align="center"><b>==Switch Off==</b><br/>
<a href="action.wml?action=Shutdown&<!-- #AUTH# -->">ShutDown</a><br/>
<a href="action.wml?action=Restart&<!-- #AUTH# -->">Reboot</a><br/>
<a href="action.wml?action=Logoff&<!-- #AUTH# -->">Log Off</a><br/>
<a href="action.wml?action=Lock&<!-- #AUTH# -->">Lock</a><br/>
<a href="action.wml?action=Hangup&<!-- #AUTH# -->">Hangup</a><br/>
<a href="action.wml?action=Standby&<!-- #AUTH# -->">Standby</a><br/>
<a href="action.wml?action=Hibernate&<!-- #AUTH# -->">Hibernate</a><br/>
<a href="action.wml?action=Quit&<!-- #AUTH# -->">Quit</a><br/>
</p>
</card>
</wml>
login.wml Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="Login" title="Login">
<p align="left">
<b>User</b><input name="FUser" value=""/><br/>
<b>Password</b><input name="FPassword" value="" type ="password"/><br/>
<do type="accept" label="Ok">
<go href="<!-- #URL# -->" method="get">
<postfield name="User" value="$(FUser)"/>
<postfield name="Password" value="$(FPassword)"/>
</go>
</do>
</p>
</card>
</wml>
action.wml Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="Main" title="Switch Off">
<p align="center"><b>==Switch Off==</b><br/>
<!-- #Message# --><br/>
<anchor title="Home">Home<go href="/?<!-- #AUTH# -->" method="get"></go></anchor><br/>
</p>
</card>
</wml>
|
|
#3
|
|||
|
|||
|
Please?
|
|
#4
|
||||
|
||||
|
it means the document is empty.
consult the user guide for the application.....
__________________
Andy Moore << oh no it's got a blog..... Word Press WAP Plugin with Ad Mob Advertising revenue PHP developer deploying ringtones, mp3 downloads and realtones I'm a geek who's obsessed with stats and gadgets |
|
#5
|
|||
|
|||
|
No User Guide came with it, can you be more specific as in where it's empty?
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > WAP Error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|