//>>built
define("dojox/wire/ml/XmlHandler",["dijit","dojo","dojox","dojo/require!dojox/wire/ml/RestHandler,dojox/xml/parser,dojox/wire/_base,dojox/wire/ml/util"],function(g,b,d){b.provide("dojox.wire.ml.XmlHandler");b.require("dojox.wire.ml.RestHandler");b.require("dojox.xml.parser");b.require("dojox.wire._base");b.require("dojox.wire.ml.util");b.declare("dojox.wire.ml.XmlHandler",d.wire.ml.RestHandler,{contentType:"text/xml",handleAs:"xml",_getContent:function(c,f){var a=null;if("POST"==c||"PUT"==c){var e=
f[0];e&&(b.isString(e)?a=e:(a=e,a instanceof d.wire.ml.XmlElement?a=a.element:9===a.nodeType&&(a=a.documentElement),a='\x3c?xml version\x3d"1.0"?\x3e'+d.xml.parser.innerXML(a)))}return a},_getResult:function(c){c&&(c=new d.wire.ml.XmlElement(c));return c}})});