1var XMLParser=function(){var l=function(n){var r={position:!1,description:!1};if(/^\s*$/.test(n)){var r={success:!0};return r}try{var c=new DOMParser().parseFromString(n,"application/xml")}catch(p){return r.status="error",r.title="Invalid XML",r.description="Internet Explorer cannot provide detailed description for this error.",r}var i=c.getElementsByTagName("parsererror")[0];if(i){r.status="error",r.title="Invalid XML";var s=i.textContent;if(/mozilla/.test(i.namespaceURI)){var e=s.match(/^XML Parsing Error: ([a-z0-9\s\-\:]+)$/im);e&&e[1]&&(r.description=e[1].charAt(0).toUpperCase()+e[1].slice(1)+".");var o=s.match(/^Line Number (\d+), Column (\d+):/im);if(o){var t=parseInt(o[1]),a=parseInt(o[2]);r.position={start:{line:t-1,ch:a-1},end:{line:t-1,ch:a}},r.title="Invalid XML at line {0}, column {1}".format(t,a)}return r}else if(/below is a rendering of the page/ig.test(s)){var e=i.getElementsByTagName("div")[0].textContent.match(/^error on line (\d+) at column (\d+): ([a-z0-9\s\-\:]+)$/im);if(e){var t=parseInt(e[1]),a=parseInt(e[2]);r.description=e[3].charAt(0).toUpperCase()+e[3].slice(1,-1)+".",r.position={start:{line:t-1,ch:a-1},end:{line:t-1,ch:a}}}return r}return r}return r.status="success",r};return{parse:function(n,r){r(l(n))}}}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.