The following code will copy ONE attribute: 'fill-rule' from svg(external svg) to snap paper(internal svg). How can I copy ALL the attributes and syling from one svg to another svg please? Any ideas would be greatly appreciated.
s1.attr("fill-rule", svg.node.getAttribute("fill-rule"));
Edit: If I use Roberts code, why this doesn't copy the attrs from svg to s1?:
s1.attr(attrs.item(i).svg);