ylliX - Online Advertising Network

Svg string to svg path string conversion

Is there a nodejs / javascrpt library which converts a svg string to a svg path string or string array? By svg string (input) I mean something like this: <svg xmlns=”http://www.w3.org/2000/svg” width=”207.34″ height=”252.22″> <rect width=”206.34″ height=”251.22″ x=”-103.17″ y=”-125.61″ rx=”.057″ ry=”.057″ style=”stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;fill:#fff;fill-rule:nonzero;opacity:1″ transform=”translate(58.702 108.562)scale(.4456)”/> <rect width=”35″ height=”35″ x=”-17.5″ y=”-17.5″ rx=”.057″ ry=”.057″ style=”stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;fill:#004885;fill-rule:nonzero;opacity:1″ transform=”translate(22.755 151.736)scale(.4456)”/> <rect width=”35″ […]