var s='<svg xmlns="http://www.w3.org/2000/svg" ' + 'xmlns:xlink="http://www.w3.org/1999/xlink" ' + 'xmlns:dojoxsketch="http://dojotoolkit.org/dojox/sketch" ' + 'width="' + this.size.w + '" height="' + this.size.h + '">' + '<g>' + '<image xlink:href="' + this.imageSrc + '" x="0" y="0" width="' + this.size.w + '" height="' + this.size.h + '" />'; for(var i=0; i<this.shapes.length; i++) s+= this.shapes[i].serialize(); s += '</g></svg>'; return s;