[html 5 canvas support required]
canvas svg

This shows how to use the SVGCanvas object from SVGKit to record and convert HTML5 canvas API drawing commands to svg.