UNPKG

w3c-xml-validator

Version:

A library for programmatically submitting XML for online validation using W3C's Markup Validation Service (https://validator.w3.org/check).

457 lines (292 loc) 17.9 kB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title> [Valid] Markup Validation of upload://Form Submission - W3C Markup Validator</title> <link rel="icon" href="data:image/png,%89PNG%0D%0A%1A%0A%00%00%00%0DIHDR%00%00%00%10%00%00%00%10%08%02%00%00%00%90%91h6%00%00%00%19IDAT(%91c%0C%DD%10%C5%40%0A%60%22I%F5%A8%86Q%0DCJ%03%00dy%01%7F%0C%9F0%7D%00%00%00%00IEND%AEB%60%82" type="image/png" /> <link rev="made" href="mailto:www-validator@w3.org" /> <link rev="start" href="./" title="Home Page" /> <link rel="stylesheet" href="./style/base" type="text/css" media="all" /> <link rel="stylesheet" href="./style/results" type="text/css" media="all" /> <meta name="keywords" content="HTML, HyperText Markup Language, Validation, W3C Markup Validation Service" /> <meta name="description" content="W3C's easy-to-use markup validation service, based on SGML and XML parsers." /> </head> <body> <div id="banner"> <h1 id="title"> <a href="http://www.w3.org/"><img alt="W3C" width="110" height="61" id="logo" src="./images/w3c.png" /></a> <a href="./"><span>Markup Validation Service</span></a> </h1> <p id="tagline">Check the markup (HTML, XHTML, …) of Web documents</p> </div> <div id="results_container"> <ul class="navbar" id="jumpbar"> <li><strong>Jump To:</strong></li> <li><a href="#preparse_warnings">Notes and Potential Issues</a></li> <li><a title="Information on validation, Icons" href="#congrats">Congratulations &middot; Icons</a></li> </ul> <!-- valid/invalid header and revalidation table --> <h2 class="valid">This document was successfully checked as http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd!</h2> <form id="form" method="post" enctype="multipart/form-data" action="check"> <table class="header"> <tr> <th>Result:</th> <td colspan="2" class="valid"> Passed, <strong class="has_warnings">2 warning(s)</strong> </td> </tr> <tr> <th><label title="Uploaded source of your Document" for="fragment">Source</label>:</th><td colspan="2"><textarea id="fragment" name="fragment" rows="12" cols="80">&lt;?xml version=&quot;1.0&quot;?&gt; &lt;!DOCTYPE cXML SYSTEM &quot;http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd&quot;&gt; &lt;cXML payloadID=&quot;933695160894&quot; timestamp=&quot;2002-08-15T08:47:00-07:00&quot; xml:lang=&quot;en-US&quot;&gt; &lt;Header&gt; &lt;From&gt; &lt;Credential domain=&quot;DUNS&quot;&gt; &lt;Identity&gt;83528721&lt;/Identity&gt; &lt;/Credential&gt; &lt;/From&gt; &lt;To&gt; &lt;Credential domain=&quot;DUNS&quot;&gt; &lt;Identity&gt;65652314&lt;/Identity&gt; &lt;/Credential&gt; &lt;/To&gt; &lt;Sender&gt; &lt;Credential domain=&quot;workchairs.com&quot;&gt; &lt;Identity&gt;website 1&lt;/Identity&gt; &lt;/Credential&gt; &lt;UserAgent&gt;Workchairs cXML Application&lt;/UserAgent&gt; &lt;/Sender&gt; &lt;/Header&gt; &lt;Message&gt; &lt;PunchOutOrderMessage&gt; &lt;BuyerCookie&gt;1CX3L4843PPZO&lt;/BuyerCookie&gt; &lt;PunchOutOrderMessageHeader operationAllowed=&quot;edit&quot;&gt; &lt;Total&gt; &lt;Money currency=&quot;USD&quot;&gt;763.20&lt;/Money&gt; &lt;/Total&gt; &lt;/PunchOutOrderMessageHeader&gt; &lt;ItemIn quantity=&quot;3&quot;&gt; &lt;ItemID&gt; &lt;SupplierPartID&gt;5555&lt;/SupplierPartID&gt; &lt;SupplierPartAuxiliaryID&gt;E000028901&lt;/SupplierPartAuxiliaryID&gt; &lt;/ItemID&gt; &lt;ItemDetail&gt; &lt;UnitPrice&gt; &lt;Money currency=&quot;USD&quot;&gt;254.40&lt;/Money&gt; &lt;/UnitPrice&gt; &lt;Description xml:lang=&quot;en&quot;&gt; &lt;ShortName&gt;Excelsior Desk Chair&lt;/ShortName&gt;Leather Reclining Desk Chair with Padded Arms&lt;/Description&gt; &lt;UnitOfMeasure&gt;EA&lt;/UnitOfMeasure&gt; &lt;Classification domain=&quot;UNSPSC&quot;&gt;5136030000&lt;/Classification&gt; &lt;LeadTime&gt;12&lt;/LeadTime&gt; &lt;/ItemDetail&gt; &lt;/ItemIn&gt; &lt;/PunchOutOrderMessage&gt; &lt;/Message&gt; &lt;/cXML&gt; </textarea></td> </tr> <tr> <th><label title="Character Encoding" for="charset">Encoding</label>:</th> <td>utf-8</td><td><select name="charset" id="charset"> <option value="(detect automatically)">(detect automatically)</option> <option value="utf-8" >utf-8 (Unicode, worldwide)</option> <option value="utf-16" >utf-16 (Unicode, worldwide)</option> <option value="iso-8859-1" >iso-8859-1 (Western Europe)</option> <option value="iso-8859-2" >iso-8859-2 (Central Europe)</option> <option value="iso-8859-3" >iso-8859-3 (Southern Europe)</option> <option value="iso-8859-4" >iso-8859-4 (North European)</option> <option value="iso-8859-5" >iso-8859-5 (Cyrillic)</option> <option value="iso-8859-6-i" >iso-8859-6-i (Arabic)</option> <option value="iso-8859-7" >iso-8859-7 (Greek)</option> <option value="iso-8859-8" >iso-8859-8 (Hebrew, visual)</option> <option value="iso-8859-8-i" >iso-8859-8-i (Hebrew, logical)</option> <option value="iso-8859-9" >iso-8859-9 (Turkish)</option> <option value="iso-8859-10" >iso-8859-10 (Latin 6)</option> <option value="iso-8859-11" >iso-8859-11 (Latin/Thai)</option> <option value="iso-8859-13" >iso-8859-13 (Latin 7, Baltic Rim)</option> <option value="iso-8859-14" >iso-8859-14 (Latin 8, Celtic)</option> <option value="iso-8859-15" >iso-8859-15 (Latin 9)</option> <option value="iso-8859-16" >iso-8859-16 (Latin 10)</option> <option value="us-ascii" >us-ascii (basic English)</option> <option value="euc-jp" >euc-jp (Japanese, Unix)</option> <option value="shift_jis" >shift_jis (Japanese, Win/Mac)</option> <option value="iso-2022-jp" >iso-2022-jp (Japanese, email)</option> <option value="euc-kr" >euc-kr (Korean)</option> <option value="gb2312" >gb2312 (Chinese, simplified)</option> <option value="gb18030" >gb18030 (Chinese, simplified)</option> <option value="big5" >big5 (Chinese, traditional)</option> <option value="big5-HKSCS" >Big5-HKSCS (Chinese, Hong Kong)</option> <option value="tis-620" >tis-620 (Thai)</option> <option value="koi8-r" >koi8-r (Russian)</option> <option value="koi8-u" >koi8-u (Ukrainian)</option> <option value="iso-ir-111" >iso-ir-111 (Cyrillic KOI-8)</option> <option value="macintosh" >macintosh (MacRoman)</option> <option value="windows-1250" >windows-1250 (Central Europe)</option> <option value="windows-1251" >windows-1251 (Cyrillic)</option> <option value="windows-1252" >windows-1252 (Western Europe)</option> <option value="windows-1253" >windows-1253 (Greek)</option> <option value="windows-1254" >windows-1254 (Turkish)</option> <option value="windows-1255" >windows-1255 (Hebrew)</option> <option value="windows-1256" >windows-1256 (Arabic)</option> <option value="windows-1257" >windows-1257 (Baltic Rim)</option> </select> </td> </tr> <tr> <th><label for="doctype" title="Document Type">Doctype</label>:</th> <td>http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd</td><td><select id="doctype" name="doctype"> <option value="Inline">(detect automatically)</option> <option value="HTML5">HTML5 (experimental)</option> <option value="XHTML 1.0 Strict">XHTML 1.0 Strict</option> <option value="XHTML 1.0 Transitional" >XHTML 1.0 Transitional</option> <option value="XHTML 1.0 Frameset" >XHTML 1.0 Frameset</option> <option value="HTML 4.01 Strict" >HTML 4.01 Strict</option> <option value="HTML 4.01 Transitional" >HTML 4.01 Transitional</option> <option value="HTML 4.01 Frameset" >HTML 4.01 Frameset</option> <option value="HTML 4.01 + RDFa 1.1" >HTML 4.01 + RDFa 1.1</option> <option value="HTML 3.2" >HTML 3.2</option> <option value="HTML 2.0" >HTML 2.0</option> <option value="ISO/IEC 15445:2000 (&quot;ISO HTML&quot;)" >ISO/IEC 15445:2000 ("ISO HTML")</option> <option value="XHTML 1.1" >XHTML 1.1</option> <option value="XHTML + RDFa" >XHTML + RDFa</option> <option value="XHTML Basic 1.0" >XHTML Basic 1.0</option> <option value="XHTML Basic 1.1" >XHTML Basic 1.1</option> <option value="XHTML Mobile Profile 1.2" >XHTML Mobile Profile 1.2</option> <option value="XHTML-Print 1.0" >XHTML-Print 1.0</option> <option value="XHTML 1.1 plus MathML 2.0" >XHTML 1.1 plus MathML 2.0</option> <option value="XHTML 1.1 plus MathML 2.0 plus SVG 1.1" >XHTML 1.1 plus MathML 2.0 plus SVG 1.1</option> <option value="MathML 2.0" >MathML 2.0</option> <option value="SVG 1.0" >SVG 1.0</option> <option value="SVG 1.1" >SVG 1.1</option> <option value="SVG 1.1 Tiny" >SVG 1.1 Tiny</option> <option value="SVG 1.1 Basic" >SVG 1.1 Basic</option> <option value="SMIL 1.0" >SMIL 1.0</option> <option value="SMIL 2.0" >SMIL 2.0</option> </select> </td> </tr> <tr> <th>Root Element:</th> <td colspan="2">cXML</td> </tr> </table> <div id="w3c-include"> <script src="//www.w3.org/QA/Tools/w3c-include.js"></script> </div> <fieldset id="revalidate_opts"> <legend>Options</legend> <table class="header"> <tr> <td><input type="checkbox" value="1" id="ss" name="ss" /><label title="Show Page Source" for="ss">Show&nbsp;Source</label></td> <td><input type="checkbox" value="1" id="outline" name="outline" /><label title="Show an Outline of the document" for="outline">Show&nbsp;Outline</label></td> <td><input type="radio" name="group" id="group_no" value="0" checked="checked" /><label for="group_no">List Messages Sequentially</label> <input type="radio" name="group" id="group_yes" value="1" /><label for="group_yes">Group Error Messages by Type</label></td> </tr> <tr> <td><input type="checkbox" value="1" id="No200" name="No200" /><label title="Validate also pages for which the HTTP status code indicates an error" for="No200">Validate&nbsp;error&nbsp;pages</label></td> <td><input type="checkbox" value="1" id="verbose" name="verbose" /><label title="Show Verbose Output" for="verbose">Verbose&nbsp;Output</label></td> <td><input id="st" name="st" type="checkbox" value="1" /><label for="st">Clean up Markup with HTML-Tidy</label></td> </tr> </table> <p class="moreinfo"> <a href="docs/users.html#Options">Help</a> on the options is available. </p> <div id="revalidate_button" class="submit_button"> <input type="hidden" value="W3C_Validator/1.3 http://validator.w3.org/services" id="user-agent" name="user-agent" /> <input type="submit" value="Revalidate" title="Validate this document again" /> </div> </fieldset> </form> <div id="result"> <h3 id="preparse_warnings">Notes and Potential Issues</h3> <p>The following notes and warnings highlight missing or conflicting information which caused the validator to perform some guesswork prior to validation, or other things affecting the output below. If the guess or fallback is incorrect, it could make validation results entirely incoherent. It is <em>highly recommended</em> to check these potential issues, and, if necessary, fix them and re-validate the document.</p> <ol id="warnings"> <li class="msg_info" id="W27"><p><span class="err_type"><img src="images/info_icons/info.png" alt="Info" title="Info" /></span> <span class="msg">No Character encoding declared at document level</span></p> <p>No character encoding information was found within the document, either in an HTML <code>meta</code> element or an XML declaration. It is often recommended to declare the character encoding in the document itself, especially if there is a chance that the document will be read from or saved to disk, CD, etc.</p> <p>See <a href="http://www.w3.org/International/tutorials/tutorial-char-enc/#Slide0250">this tutorial on character encoding</a> for techniques and explanations.</p> </li> <li class="msg_info" id="W28"><p><span class="err_type"><img src="images/info_icons/info.png" alt="Info" title="Info" /></span> <span class="msg">Using Direct Input mode: UTF-8 character encoding assumed</span></p> <p>Unlike the “by URI” and “by File Upload” modes, the “Direct Input” mode of the validator provides validated content in the form of characters pasted or typed in the validator's form field. This will automatically make the data UTF-8, and therefore the validator does not need to determine the character encoding of your document, and will ignore any charset information specified.</p> <p>If you notice a discrepancy in detected character encoding between the “Direct Input” mode and other validator modes, this is likely to be the reason. It is neither a bug in the validator, nor in your document.</p> </li> </ol><!-- End of "warnings". --> <h3 id="congrats">Congratulations</h3> <p> The uploaded document was successfully checked as http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd. This means that the resource in question identified itself as "http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd" and that we successfully performed a formal validation of it. The parser implementations we used for this check are based on <a href="http://openjade.sourceforge.net/">OpenSP</a> (SGML/XML) and <a href="http://xmlsoft.org/">libxml2</a> (XML). </p> <h4>Validating CSS Style Sheets</h4> <p> If you use <a href="http://www.w3.org/Style/CSS/">CSS</a> in your document, you can check it using the W3C <a href="http://jigsaw.w3.org/css-validator/">CSS Validation Service</a>. </p> <p class="backtop"><a href="#jumpbar">&uarr; Top</a></p> </div><!-- end of "result" --> </div><!-- results_container--> <ul class="navbar" id="menu"> <li><a href="./" accesskey="1" title="Go to the Home Page for The W3C Markup Validation Service">Home</a><span> | </span></li> <li><a href="./about.html" title="Information About this Service">About...</a><span> | </span></li> <li><a href="./whatsnew.html" title="The changes made to this service recently">News</a><span> | </span></li> <li><a href="./docs/" accesskey="3" title="Documentation for this Service">Docs</a><span> | </span></li> <li><a href="./docs/help.html" title="Help and answers to frequently asked questions">Help&nbsp;&amp;&nbsp;<abbr title="Frequently Asked Questions">FAQ</abbr></a><span> | </span></li> <li><a href="./feedback.html" accesskey="4" title="How to provide feedback on this service">Feedback</a><span> | </span></li> <li><a href="./contribute.html" title="How to contribute to the validator project">Contribute</a><span> | </span></li> </ul> <div id="footer"> <p id="activity_logos"> <a href="http://www.w3.org/Status" title="W3C's Open Source, bringing you free Web quality tools and more"><img src="//www.w3.org/Icons/WWW/w3c_home_nb" alt="W3C" width="72" height="47" /><img src="./images/opensource-55x48.png" alt="Open-Source" title="We are building certified Open Source/Free Software. - see www.opensource.org" width="55" height="48" /></a> </p> <p id="support_logo"> <a href="http://www.w3.org/QA/Tools/Donate"> <img src="//www.w3.org/QA/Tools/I_heart_validator" alt="I heart Validator logo" title=" Validators Donation Program" width="80" height="15" /> </a> </p> <p id="version_info"> This service runs the W3C Markup Validator, <a href="whatsnew.html#v14"><abbr title="version">v</abbr>1.3+hg</a>. </p> <p class="copyright"> <a rel="license" href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> &copy; 1994-2013 <a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a>&reg; (<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href="http://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a>, <a rel="license" href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> and <a rel="license" href="http://www.w3.org/Consortium/Legal/copyright-software">software licensing</a> rules apply. Your interactions with this site are in accordance with our <a href="http://www.w3.org/Consortium/Legal/privacy-statement#Public">public</a> and <a href="http://www.w3.org/Consortium/Legal/privacy-statement#Members">Member</a> privacy statements. </p> </div><!-- footer --> </body> </html>