I have an .xml document which is a valid SVG image.
I want to load this icon with different colors. But I could not.
As a solution firstly I read an xml file as a string and replaced colors using simple String.replace()
Now I must create an SVGIcon using my new XML content.
Is it posssible to do this with SVG Salamander library.
With SVG Salamander:
Get the diagram from the cache and call a recursive search and replace:
Code for the functions: