123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: hal
- // (C) Copyright IBM Corp. 2003, 2017.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- Node.prototype.selectNodes=function(_hV82){var doc=this.ownerDocument?this.ownerDocument:this;var _hRT1=null;if(doc._h7G1){_hRT1={};_hRT1._h7G1=doc._h7G1;_hRT1._h6R=doc.createNSResolver(doc.documentElement);_hRT1.lookupNamespaceURI=function(_hS02){return this._h7G1[_hS02]?this._h7G1[_hS02]:this._h6R.lookupNamespaceURI(_hS02);};}var _hR02=doc.evaluate(_hV82, this, _hRT1, 5, null);var a=[];for(var n=_hR02.iterateNext();n;n=_hR02.iterateNext()){a.push(n);}a.item=U_DOM.F_Item;return a;};XMLDocument.prototype.__defineGetter__("parseError",function(){var n=this.documentElement;var _hME1={};_hME1.errorCode=0;_hME1.srcText=null;_hME1.reason=null;_hME1.url=null;_hME1.line=0;_hME1.linepos=0;if(n==null){_hME1.errorCode=2;_hME1.reason="The document element is empty. This implies that the system cannot locate the object specified.";}else if(n.getElementsByTagName("parsererror").length>0){_hME1.errorCode=1;var _hNE1=n.getElementsByTagName("parsererror")[0];if(_hNE1!=null){_hME1.srcText=_hNE1.innerText;var _hOE1=_hNE1.childNodes[1]?_hNE1.childNodes[1].innerText:"";var _hPE1=_hOE1.indexOf("line ") + "line ".length;var _hJN1=_hOE1.indexOf(" at column ");var _h631=_hOE1.indexOf(" at column ") + " at column ".length;var _hKN1=_hOE1.indexOf(": ");if(_hPE1!=-1&&_hKN1!=-1&&_hJN1!=-1){_hME1.line=parseInt(_hOE1.substring(_hPE1, _hJN1), 10);_hME1.linepos=parseInt(_hOE1.substring(_h631, _hKN1), 10);_hME1.reason=_hOE1.substring(_hKN1+2);}else{_hME1.reason=_hOE1;} }}return _hME1;});Node.prototype.__defineGetter__("xml",function(){if(this.nodeType==U_XML.K_iNODE_DOCUMENT_TYPE&&this.ownerDocument&&this.ownerDocument.rawDTD){return this.ownerDocument.rawDTD;}return(new XMLSerializer()).serializeToString(this);});Attr.prototype.__defineGetter__("specified",function(){var n=this.ownerElement;var d=n.ownerDocument;if(d.doctype){if(!d._h42){d._h42=C_XmlSerializer.F_ParseDefaultAttributes(d);}var _hXX1=d._h42[n.nodeName];return !(_hXX1&&_hXX1[this.name]&&(_hXX1[this.name]===this.value));}return true;});
|