SVG support file

Hello:
Is it possible to load box2d object from a SVG file?
I have this example and I want to load it in the magical box2d world:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="500" version="1.1">
<defs>
<style type="text/css"> text { font-family:sans-serif; } </style>
</defs>

<path style="stroke:black; stroke-width:2.5; fill:none" d="M 70,420 C 150,70 700,145 650,420" />
</svg>

I'm using the c++ version.

Salu2...
masch...
Not in general, no, as SVG files aren't trivial to parse, and aren't really designed with physical objects in mind.
That said, it is very do-able - shaktool provided a shortish example in Flash, and I'm sure it would be equally easy given the existance of a decent SVG library. You want to extract the paths, reticulate (convert to short linear segments), and then use b2EdgeShapes. The main caveat is that edges shapes are one sided, while SVG editors rarely makes this distinction visible.
It depends on what functionality you want. If you just want static maps, yeah, that's not too hard to extract from SVG files. You just need to look at the "d" property on any path elements, and convert them into edge chains. The path elements are explained here:
http://www.w3.org/TR/SVG11/paths.html#PathData

In the past, I was able to use Rect elements to indicate spawn positions of various dynamic actors in my game, though I did not use SVGs to control the actual shape or behavior of these actors:
http://www.w3.org/TR/SVG11/shapes.html#RectElement

SVGs have a lot of functionality that might not make sense in your game. It is not necessary to parse all of it. Some sort of XML library would be desirable, but a general SVG parser is not.
Thank you for your reply!!..
I'm very newbie in box2d and SVG, so I do no understand some things.
How can I extract the x,y point of a curve like my example?...Do I need some SVG library that give me the x,y and then create an b2EdgeShapes object??

masch...
Salu2..
I strongly recommend using a SVG library to do so, although it is possible to write a lightweight parser yourself.
If you really want to parse basic SVG paths yourself, do as shaktool suggests and read the spec (http://www.w3.org/TR/SVG/paths.html). Unfortunately I can't vouch for any particular C++ SVG library.

Your example uses Bezier curves, but they don't give the formulas in the spec, so also take a look at http://en.wikipedia.org/wiki/B%C3%A9zier_curve to see how to get those numbers out.
Great!.. Thank you so much for your help I will study Bezier curves.
One more thing, I saw in the example of the Box2d a function called ConvertScreenToWorld, Is it a function that convert World to Screen??, because everything it happens in the physics world I displayed in another screen that works with pixels.
My first solution was make the inverse of the function in mathematical way, but I sure there is a better way. This way it's works fine.

Sau2..
masch..
Thanks for the help. I really appreaciate it.
_____________________________________
marketing return on investment
clear vision 3
I've written a number of tutorials on this topic covering - parsing SVG (http://www.deluge.co/?q=node/2), displaying and refining Cubic Benzier curves (http://www.deluge.co/?q=benzier-curves) and how to write a camera class to perform screen to world transformations (http://www.deluge.co/?q=node/4). I've included a set of classes which take a SVG file location as an argument and return a list of Vec2 points to represent the path. Even if you can't use my code directly I'm sure it would help you to write your own code.
I have a decent parser here that may be useful to you. https://github.com/timkerchmar/TrippySoftLib

Original thread: https://box2d.org/forum/viewtopic.php?t=3012