roxmltree icon indicating copy to clipboard operation
roxmltree copied to clipboard

What would I do if I wanted to modify the tree and write to a new file?

Open azambuilds opened this issue 1 year ago • 1 comments

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.

azambuilds avatar Mar 05 '24 08:03 azambuilds

I don't think any of my libraries are suited for this. I guess your only option is something like xml5ever.

RazrFalcon avatar Mar 05 '24 14:03 RazrFalcon