//>>built
define("dojox/xml/widgetParser","dojo/_base/lang dojo/_base/window dojo/_base/sniff dojo/query dojo/parser dojox/xml/parser".split(" "),function(f,m,n,p,l,q){l=lang.getObject("dojox.xml",!0);xXml.widgetParser=new function(){this.parseNode=function(a){var b=[];f.query("script[type\x3d'text/xml']",a).forEach(function(e){b.push.apply(b,this._processScript(e))},this).orphan();return f.parser.instantiate(b)};this._processScript=function(a){var b=a.src?f._getText(a.src):a.innerHTML||a.firstChild.nodeValue;
b=this.toHTML(dojox.xml.parser.parse(b).firstChild);var e=f.query("[dojoType]",b);p("\x3e",b).place(a,"before");a.parentNode.removeChild(a);return e};this.toHTML=function(a){var b=a.nodeName,e=m.doc,g=a.nodeType;if(3<=g)return e.createTextNode(3==g||4==g?a.nodeValue:"");var h=a.localName||b.split(":").pop();b=a.namespaceURI||(a.getNamespaceUri?a.getNamespaceUri():"");if("html"==b)var d=e.createElement(h);else b=b+"."+h,d=d||e.createElement("dijit.form.ComboBox"==b?"select":"div"),d.setAttribute("dojoType",
b);f.forEach(a.attributes,function(c){var k=c.name||c.nodeName;c=c.value||c.nodeValue;0!=k.indexOf("xmlns")&&(n("ie")&&"style"==k?d.style.setAttribute("cssText",c):d.setAttribute(k,c))});f.forEach(a.childNodes,function(c){c=this.toHTML(c);"script"==h?d.text+=c.nodeValue:d.appendChild(c)},this);return d}};return l.widgetParser});