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

Use xml code instead of svg file? #54

Closed
nitanmarcel opened this issue Dec 21, 2020 · 2 comments
Closed

Use xml code instead of svg file? #54

nitanmarcel opened this issue Dec 21, 2020 · 2 comments
Labels
question Further information is requested

Comments

@nitanmarcel
Copy link

Is there a way to use the xml code instead of a svg file? I'm working on a live editing tool and it will be pretty handy for me to just use the xml text instead of the svg file since my project requires binding between css and xml to edit the svg,

Thanks!

@wieslawsoltes
Copy link
Owner

You can load from xml using stream.

@wieslawsoltes
Copy link
Owner

var svgDocument = SvgDocument.FromSvg<SvgDocument>(svg);
if (svgDocument != null)
{
Picture = ToPicture(svgDocument);
return Picture;
}
return null;

@wieslawsoltes wieslawsoltes added the question Further information is requested label Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants