SVG appears to be a text-based file format based on XML. I copied the svg definition from the official website and it seemed to work OK. Maybe it’s a place you could start from?
I had to zip it in order to upload it to the forum.
obsidian.svg.zip (632 Bytes)