W3C home > Mailing lists > Public > www-validator@w3.org > December 2008

Error message for error 404 generates inavlid xml in the message node when using the soap12 validation service.

From: Craig Boal <cboal@sierratradingpost.com>
Date: Fri, 5 Dec 2008 14:48:50 -0700
Message-ID: <37E41BC76621DC459827F6F7C92E1B1709289BEE@stp-email01.STP.LOCAL>
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" 
      >&#x2709;</a>
    </p>

    <div class="ve mid-404">
    <p>
      This message may appear in several cases:
    </p>
    <ul>
      <li>You tried to include the "&lt;" character in your page: you
should escape it as "&amp;lt;"</li>
      <li>You used an unescaped ampersand "&amp;": this may be valid in
some contexts, 
      but it is recommended to use "&amp;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&#62;<strong title="Position where error was
detected.">&#60;</strong>img
src=&#34;/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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:33 GMT