W3C home > Mailing lists > Public > public-mobileok-checker@w3.org > January 2011

Re: SXXP0003: Error reported by XML parser: The element type "a" must be terminated by the matching end-tag "</a>".

From: Francois Daoust <fd@w3.org>
Date: Tue, 11 Jan 2011 13:44:09 +0100
Message-ID: <4D2C5099.5050002@w3.org>
To: james@mobilewebexpert.co.uk
CC: public-mobileok-checker@w3.org
Hi James,

On 01/11/2011 02:28 AM, james@mobilewebexpert.co.uk wrote:
> Hiya,
> I've just started using the mobileOK Java library. It seems to work for sites that have valid XHTML, but when I try it on, e.g., http://www.chaletdulys.it/, I get this error when I call tester.runTests()...
> SXXP0003: Error reported by XML parser: The element type "a" must be terminated by the matching end-tag "</a>"

The message is output by the XML parser used to parse the document in the XhtmlContent.parseDOM() function when the mobileOK Checker tries to parse the document as XML.

The XML parser outputs the message and triggers an exception, but that exception should get caught by the above mentioned function in the mobileOK Checker, which then attempts to tidy the document before trying again to parse it as XML. In short, this message is merely a warning output by the XML parser and does not prevent the mobileOK Checker from running out just fine.

> I'd like runTests() to function just how the http://validator.w3.org/mobile/ test does - i.e., not bomb out when there is an XHTML error. Does anyone know how I can configure it accordingly?

It should already work as expected and you can ignore the message which just means "I tried to parse the resource under test as XML. It did not work, and I'm falling back to tagsoup parsing". As part of the mobileOK Checker report, you should see a CONTENT_FORMAT_SUPPORT-6 failure message since the document de facto does not validate against the XHTML Basic 1.1 DTD.

There should be a way to disable the output of such warning messages through some configuration setting, although I don't know how on top of my head.


> Many thanks,
> James
Received on Tuesday, 11 January 2011 12:44:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:21:21 UTC