- From: Craig Boal <cboal@sierratradingpost.com>
- Date: Fri, 5 Dec 2008 14:48:50 -0700
- To: <www-validator@w3.org>
I have automated some html validation and I pull the results returned
from your service into an XML dom. Unfortunately the message node
contains "<" which makes the xml invalid. Below is an example of the
offending xml:
<m:warning>
<m:line>29</m:line>
<m:col>117</m:col>
<m:message>character "<" is the first character of a
delimiter but occurred as data</m:message>
<m:messageid>404</m:messageid>
<m:explanation> <![CDATA[
<p class="helpwanted">
<a
href="http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fwww.sierrat
radingpost.com%2FValidateAd.aspx%3Fadid%3D1430%26ignoreadcache%3D1;errms
g_id=404#errormsg"
title="Suggest improvements on this error message through our
feedback channels"
>✉</a>
</p>
<div class="ve mid-404">
<p>
This message may appear in several cases:
</p>
<ul>
<li>You tried to include the "<" character in your page: you
should escape it as "&lt;"</li>
<li>You used an unescaped ampersand "&": this may be valid in
some contexts,
but it is recommended to use "&amp;", which is always
safe.</li>
<li>Another possibility is that you forgot to close quotes in a
previous tag.</li>
</ul>
</div>
]]>
</m:explanation>
<m:source><![CDATA[...Extra 20% Off Select Shoes and
Boots><strong title="Position where error was
detected."><</strong>img
src="/assets/images/ppam/ad_images/]]></m:source>
</m:warning>
Here is the url that generates the invalid xml but we may have the html
fixed before you see it.
http://validator.w3.org/check?uri=http%3a%2f%2fwww.sierratradingpost.com
%2fValidateAd.aspx%3fadid%3d1430%26ignoreadcache%3d1&output=soap12
Received on Friday, 5 December 2008 22:15:57 UTC