Closed alloza95 closed 2 years ago
Sure, what about something along:
final document = XmlDocument.parse(svgXml);
document.findAllElements('path')
.forEach((element) => element.setAttribute('fill', '#000'));
print(document.toXmlString());
Thank you very much! This is exactly what I need.
I have this SVG:
When I have created the XmlDocument from SVG string, is it possible modify the attribute "fill" of all "path" XmlElement?