I have a method:
line.prototype.exportSVG = function() {
return this.getrdlineElements().map(function(element) {
return element.exportSVG();
});
}
this method returns an array of SVG shapes example [rect, path, ellipse]
Instead of returning the elements in an array i want to return these as a string (xml) and in another function (importSVG) i will use this string data to create an svg image file.
how can i do this?
thanks in advance :)