I made some adjustments and squeezed one error. You can download the new version.
Now you can call the parser as follows:
svgToRaphaelParser::parse(filename, containername, canvasname, groupname, shapename)
Without shapename, it works as if: svgToRaphaelParser::parse("f.svg", "this", "c", "g") creates code that you already know.
To avoid reusing the same names, use different canvas names and / or groups for different SVG files.
As a new feature, if you need access to various forms, use it as follows:
svgToRaphaelParser::parse("f.svg", "this", "c", "g", "s")
Without shapename, you get the following:
g1.push(c.path(...));
With shapename you get it
var s1 = c.path(...); g1.push(s1);
source share