+\r
+/*\r
+ * http://www.kawa.net/works/js/jkl/parsexml.html\r
+ * \r
+// ================================================================\r
+// method: documentElement()\r
+// return: XML DOM in response body\r
+\r
+JKL.ParseXML.HTTP.prototype.documentElement = function() {\r
+ // debug.print( "documentElement: "+this.req );\r
+ if ( ! this.req ) return;\r
+ if ( this.req.responseXML ) {\r
+ return this.req.responseXML.documentElement; // XMLHTTPRequest\r
+ } else {\r
+ return this.req.documentElement; // IXMLDOMDocument\r
+ }\r
+};\r
+\r
+// ================================================================\r
+// method: responseText()\r
+// return: text string in response body\r
+\r
+JKL.ParseXML.HTTP.prototype.responseText = function() {\r
+ // debug.print( "responseText: "+this.req );\r
+ if ( ! this.req ) return;\r
+\r
+ // Safari and Konqueror cannot understand the encoding of text files.\r
+ if ( navigator.appVersion.match( "KHTML" ) ) {\r
+ var esc = escape( this.req.responseText );\r
+// debug.print( "escape: "+esc );\r
+ if ( ! esc.match("%u") && esc.match("%") ) {\r
+ return decodeURIComponent(esc);\r
+ }\r
+ }\r
+\r
+ return this.req.responseText;\r
+};\r
+ */\r
+ \r