(function(){CKEDITOR.plugins.add("xml",{});CKEDITOR.xml=function(f){var e=null;if(typeof f=="object"){e=f}else{var h=(f||"").replace(/&nbsp;/g,"\xa0");if(window.DOMParser){e=new DOMParser().parseFromString(h,"text/xml")}else{if(window.ActiveXObject){try{e=new ActiveXObject("MSXML2.DOMDocument")}catch(g){try{e=new ActiveXObject("Microsoft.XmlDom")}catch(g){}}if(e){e.async=false;e.resolveExternals=false;e.validateOnParse=false;e.loadXML(h)}}}}this.baseXml=e};CKEDITOR.xml.prototype={selectSingleNode:function(f,e){var h=this.baseXml;if(e||(e=h)){if(CKEDITOR.env.ie||e.selectSingleNode){return e.selectSingleNode(f)}else{if(h.evaluate){var g=h.evaluate(f,e,null,9,null);return g&&g.singleNodeValue||null}}}return null},selectNodes:function(h,g){var l=this.baseXml,k=[];if(g||(g=l)){if(CKEDITOR.env.ie||g.selectNodes){return g.selectNodes(h)}else{if(l.evaluate){var j=l.evaluate(h,g,null,5,null);if(j){var i;while(i=j.iterateNext()){k.push(i)}}}}}return k},getInnerXml:function(f,e){var h=this.selectSingleNode(f,e),g=[];if(h){h=h.firstChild;while(h){if(h.xml){g.push(h.xml)}else{if(window.XMLSerializer){g.push(new XMLSerializer().serializeToString(h))}}h=h.nextSibling}}return g.length?g.join(""):null}}})();