Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Validate SVG?

Community Beginner ,
Nov 04, 2019 Nov 04, 2019

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?

44.4K
Translate
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

correct answers 2 Correct answers

Community Expert , Nov 04, 2019 Nov 04, 2019

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

...
Translate
New Here , Apr 07, 2022 Apr 07, 2022

Convert file to PDF and/or back into SVG.

 

https://cloudconvert.com/

Translate
Adobe
Community Expert ,
Nov 04, 2019 Nov 04, 2019

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.

Translate
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
Community Beginner ,
Nov 04, 2019 Nov 04, 2019

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

Translate
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
Community Expert ,
Nov 04, 2019 Nov 04, 2019

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?

Translate
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

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

jonathan

Translate
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

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. 

 

Translate
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
Community Expert ,
Nov 29, 2021 Nov 29, 2021

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

Bildschirmfoto 2021-11-29 um 21.53.04.pngexpand image

Translate
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
Advisor ,
Apr 06, 2023 Apr 06, 2023

Funny it says svg version 2 is not valid?!?!

Translate
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
Community Expert ,
Apr 06, 2023 Apr 06, 2023

SVG version 2 is still a recommendation.

Translate
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
Advisor ,
Apr 08, 2023 Apr 08, 2023

To what?

I wonder how they even are created, because adobe suit can't do it. Hardly any thing online can seem to even read them

Translate
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
Community Expert ,
Apr 08, 2023 Apr 08, 2023

A recommendation to the standard: https://www.w3.org/TR/SVG2/

So SVG is still not standardized and as siuch it is not valid.

Translate
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
Advisor ,
Apr 21, 2023 Apr 21, 2023

Kinda weird that version 2 is recommended while not many apps seem to be able to deal with them

Translate
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
Community Expert ,
Apr 21, 2023 Apr 21, 2023
LATEST
quote

Kinda weird that version 2 is recommended while not many apps seem to be able to deal with them


By schroef

 

What's called a "reccomendation" is a candidate for standardization. Next step is: the ommittee members discuss the recommendation and then whenever they are ready, do or don't make it the standard. And then the next step is that this new standard is built into all concerned applications.

 

So the recommendation is not what you think it is.

Translate
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

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.

Translate
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

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

Translate
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 ,
Jun 02, 2022 Jun 02, 2022

The Corel Draw option worked fine ! Thanks a lot, you're a life savier

Translate
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

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’

Translate
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

Convert file to PDF and/or back into SVG.

 

https://cloudconvert.com/

Translate
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

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

Translate
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 ,
Dec 17, 2022 Dec 17, 2022

Huge thanks, this was the only method and the quickest one to work for me

Translate
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