@kirillrakhman: Yes and No. Svg, especially Paths have a rather complicated syntax that is difficult to parse. But you are right you can use a xml library to parse and process the things that are specific to svg yourself. Writing svg out is easier if you don't necessarily need to optimize it to be as short as possible.