Page 1 of 1

Validating WML code using W3C Validator

Posted: Sat Aug 27, 2005 7:59 am
by anjanesh
I entered this in W3C's Validator - (Validate by Direct Input)

Code: Select all

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN" "http://www.phone.com/dtd/wml11.dtd">
<wml>
 <card id="main" title="First Card">
  <p mode="wrap">This is a sample WML page.</p>
 </card>
</wml>
But its returning : Result: Failed validation, 0 error

Any idea whats wrong ?

Thanks

Posted: Sat Aug 27, 2005 8:18 am
by feyd
This page is not Valid -//PHONE.COM//DTD WML 1.1//EN!
says it pretty well.. :?

Posted: Sat Aug 27, 2005 8:20 am
by anjanesh
If <!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN" "http://www.phone.com/dtd/wml11.dtd"> is not the correct type then what is ?

Posted: Sat Aug 27, 2005 8:34 am
by feyd
it's validating it against XML, which it is not conforming to.

Posted: Sat Aug 27, 2005 8:38 am
by anjanesh
So example code in wikipedia is wrong ? And Im trying to learn WML from it !