Conversion from SVG file to XML file

Loganathan Sarangan picture Loganathan Sarangan · Nov 27, 2014 · Viewed 27.4k times · Source

Can you explain how to convert SVG files to XML files?

I am having design tool(EB guide) which generates SVG file format (contains state diagram). I need to use this SVG file in order to view the state diagram in Enterprise architect UML tool.

But, EA tool is not supporting SVG file. so i try to convert SVG file into xml file and then import in to EA tool.

Is it possible to convert this SVG file format in to XML file format? is there any conversion tool available.

logu

Answer

CoolMind picture CoolMind · Oct 2, 2017

1) In Android Studio press File > New > Vector Asset. Select SVG file in Path.

enter image description here

You will get a new XML file in drawables folder.

Or you can use these methods.

2) http://inloop.github.io/svg2android/

3) http://a-student.github.io/SvgToVectorDrawableConverter.Web/ with checkbox "Specify --fix-fill-type".