What would I do if I wanted to modify the tree and write to a new file?
My use case is parsing an svg "template" file, replacing certain nodes (e.g. changing attributes on a text node, changing the content of the text node, or adding sibling nodes to a node), and then writing out a whole new svg file.
My ideal solution would be parsing the svg into a tree, swapping / modifying nodes as I wish, then then writing to a new file.
Is there a solution here available? Or if not, is there a solution in any other of your respositories, @RazrFalcon?
Sincere apologies if this is the wrong place to make this issue, if so, please let me know where I can go.
I don't think any of my libraries are suited for this. I guess your only option is something like xml5ever.