Jump to content
You must now use your email address to sign in [click for more info] ×

SVG Export option to exclude xml and Doc type tags

Recommended Posts

I have a suggestion that i think shouldnt be to much pain for you guys to implement and would be very helpful for me and many others i imagine.

When you export to svg there is always added an xml tag and a doctype tag like this
'<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">' to the svg file.

If you want to include an svg into code these tags causes errors. Of course its easy to manually delete them but if you want to do adjustments to you svg and resave it, you have to remove these lines over and over. It would be fantastic to have an export option to remove these initial tags on export.

Thanks for reading

Edited by oeborn
added tags
Link to comment
Share on other sites

The other issue I routinely have with SVG exported from Designer is the Serif namespace xmlns:serif="http://www.serif.com/" and related element attributes such as serif:id="Artboard1" throwing errors with various pipelines. Stripping those out are a bit more involved than deleting the xml tag and doctype. It would be great if these were optional, or removed completely. Does anybody actually have any real use for these Serif namespaced elements?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.