1/* ************************************************************************************ */ 2/* Change Log */ 3/* */ 4/* XML Support */ 5/* */ 6/* 25-02-2012 - Richard Chapman - Deltasoft - Added */ 7/* ************************************************************************************ */ 8function XMLElement(success, data) 9{ 10this.Success = success; 11this.Data = data; 12} 13 14function XMLBuildElement(tag, data) 15{ 16 var element = '<' + trim(tag.toUpperCase()) + '>' + trim(data) + '</' + trim(tag.toUpperCase()) + '>'; 17 return element; 18} 19 20function XMLGetElement(tag, xml) 21{ 22 var tagmatch = new RegExp(XMLBuildElement(tag, '(.*)')) 23 var matchobj = tagmatch.exec(xml) 24 var result = new XMLElement((matchobj !== null), ''); 25 26 if (result.Success) 27 { 28 result.Data = matchobj[1]; 29 } 30 31 return result; 32} 33 34 35
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.