W3C home > Mailing lists > Public > www-validator@w3.org > September 2006

Re: Unknown Parse Mode! in form submission

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Tue, 05 Sep 2006 09:06:56 +1000
Message-ID: <44FCB190.8010006@lachy.id.au>
To: Frank Ellermann <nobody@xyzzy.claranet.de>
CC: www-validator@w3.org, neerav@sayni.net

Frank Ellermann wrote:
> Neerav Modi wrote:
>> I receive the following error or warning:
>> =======Error =======
>> Unknown Parse Mode!
>> The MIME Media Type () for this document is used to serve
>> both SGML and XML based documents, and it is not possible to
>> disambiguate it based on the DOCTYPE Declaration in your
>> document. Parsing will continue in SGML mode.
>> =======End error=======
> Beats me, you clearly say XML, there should be no question
> about the "parse mode".

The problem is that the validator doesn't use the XML declaration as its 
trigger to use XML mode.  It uses the DOCTYPE and switches to XML mode 
for known XML DOCTYPEs.  In this case, the WAPFORUM XHTML DOCTYPE is 

> Manipulating the content-type in your meta doesn't help -

Of course not, the meta element is absolutely useless for specifying 
anything but the character encoding, and then only for HTML, never for XML.

Lachlan Hunt
Received on Monday, 4 September 2006 23:07:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:58 UTC