Validate SVG?

New Here ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

I edited an svg file and closed and saved it. When I tried reopening, "This SVG is Invalid. Validate it before opening" displayed. How do I validate it?

TOPICS
How to

Views

16.2K

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

Use the W3C validator.

SVG is not suitable as a work file format in Illustrator

SVG is not suitable for roundtripping in Illustrator.

You have just experienced the reason why.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

Monika,

Where and what is the W3C validator?

What is roundtripping?

And why does Adobe provide the ability to save a file as an SVG from Illustrator, open an SVG file in Illustrator, and then save it without providing the ability to edit it later on?

-

Anyway, I prefer to edit this file without having to go back to the customer. Will W3C allow me to do that?

Thanks,

David

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

When dealing with SVGs you should know about the validator: https://validator.w3.org/

 

Roundtripping: https://en.wikipedia.org/wiki/Round-trip_format_conversion

 

SVG is not a native file format, but still you can export it as you can with several other non-native file formats. Same goes for importing.

Reading and writing SVG in Illustrator has several known issues.

The W3C validator will notify you of the issues with the file.

 

Maybe Inkscape can open it. But maybe you have to get back to the customer. Don't you have a backup of what the customer sent you?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Apr 07, 2022 Apr 07, 2022

Copy link to clipboard

Copied

I did not know abotu the validator, thank you Monica. hope you are doing well.

jonathan

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 29, 2021 Nov 29, 2021

Copy link to clipboard

Copied

I have tried this. But there is no direction on how to use W3C validator. I go through the steps, but then it gives me the coding to the file. What the heck am I supposed to do with that? All of a sudden every file I have ever created on Illustrator says this error message. This is so frusterating. 

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Nov 29, 2021 Nov 29, 2021

Copy link to clipboard

Copied

When you validate it, it will give you a notification such as this one:

Bildschirmfoto 2021-11-29 um 21.53.04.png

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 20, 2020 Jan 20, 2020

Copy link to clipboard

Copied

The quickest work around this is to open the SVG in Corel Draw if you have it.
When open in corel draw, just copy the svg and paste it into illustrator.

I had the same issue and this was the quickest way to resolve it.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 21, 2020 Feb 21, 2020

Copy link to clipboard

Copied

It also works to open the SVG in PowerPoint, then copy/paste it in Illustrator!  This is the easiest solution I've found.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 20, 2020 Jul 20, 2020

Copy link to clipboard

Copied

Simple solution that worked for me:

Open the .svg file in DreamWeaver and change ‘https’ to ‘http’:

xmlns="https://www.w3.org/2000/svg"

xmlns="http://www.w3.org/2000/svg"

 

http://www.w3.org/2000/svg’ is a namespace and not used to open the link, so no problem to delete the ‘s’

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 07, 2022 Apr 07, 2022

Copy link to clipboard

Copied

Convert file to PDF and/or back into SVG.

 

https://cloudconvert.com/

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 12, 2022 May 12, 2022

Copy link to clipboard

Copied

LATEST

Yeah this worked. But did noit need to convert to PDF, just converted my Illustrator SVG to SVG. Thanks!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines