//>>built
define("dojox/wire/ml/XmlHandler",["dojo","dijit","dojox","dojo/require!dojox/wire/ml/RestHandler,dojox/xml/parser,dojox/wire/_base,dojox/wire/ml/util"],function(_1,_2,_3){_1.provide("dojox.wire.ml.XmlHandler");_1.require("dojox.wire.ml.RestHandler");_1.require("dojox.xml.parser");_1.require("dojox.wire._base");_1.require("dojox.wire.ml.util");_1.declare("dojox.wire.ml.XmlHandler",_3.wire.ml.RestHandler,{contentType:"text/xml",handleAs:"xml",_getContent:function(_4,_5){var _6=null;if(_4=="POST"||_4=="PUT"){var p=_5[0];if(p){if(_1.isString(p)){_6=p;}else{var _7=p;if(_7 instanceof _3.wire.ml.XmlElement){_7=_7.element;}else{if(_7.nodeType===9){_7=_7.documentElement;}}var _8="<?xml version=\"1.0\"?>";_6=_8+_3.xml.parser.innerXML(_7);}}}return _6;},_getResult:function(_9){if(_9){_9=new _3.wire.ml.XmlElement(_9);}return _9;}});});