Given an SVG Path element, how can I convert all path commands into absolute coordinates? For example, convert this path:

```
<path d="M17,42 l100,0 v100 h-100 z"/>

```

into this equivalent path:

```
<path d="M17,42 L117,42 V142 H17 Z"/>

```

*This question was motivated by [this question](https://superuser.com/questions/399980/illustrator-svg-how-can-i-use-only-absolute-coordinates).*