diff --git a/examples/Node.js/SVGExport.js b/examples/Node.js/SVGExport.js index 2a7fbb79..48cb9e57 100644 --- a/examples/Node.js/SVGExport.js +++ b/examples/Node.js/SVGExport.js @@ -39,7 +39,7 @@ with (paper) { rect.rotate(45).scale(0.7); - var svg = new XMLSerializer().serializeToString(project.exportSVG()); + var svg = project.exportSVG({ asString: true }); console.log(svg); fs.writeFile(path.resolve(__dirname, 'out.svg'),svg, function (err) {