// Generated by CoffeeScript 1.12.7(function(){varXMLStringWriter,XMLWriterBase,extend=function(child,parent){for(varkeyinparent){if(hasProp.call(parent,key))child[key]=parent[key];}functionctor(){this.constructor=child;}ctor.prototype=parent.prototype;child.prototype=newctor();child.__super__=parent.prototype;returnchild;},hasProp={}.hasOwnProperty;XMLWriterBase=require('./XMLWriterBase');module.exports=XMLStringWriter=(function(superClass){extend(XMLStringWriter,superClass);functionXMLStringWriter(options){XMLStringWriter.__super__.constructor.call(this,options);}XMLStringWriter.prototype.document=function(doc,options){varchild,i,len,r,ref;options=this.filterOptions(options);r='';ref=doc.children;for(i=0,len=ref.length;i<len;i++){child=ref[i];r+=this.writeChildNode(child,options,0);}if(options.pretty&&r.slice(-options.newline.length)===options.newline){r=r.slice(0,-options.newline.length);}returnr;};returnXMLStringWriter;})(XMLWriterBase);}).call(this);