Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tameflame opened this issue Mar 5, 2024 · 1 comment

Comments

@Tameflame
Copy link

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.

@RazrFalcon
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants