Discussion:
Validating SVG--Invalid SVG?
(too old to reply)
A***@adobeforums.com
2009-03-05 21:31:29 UTC
Permalink
I spent all day working on Illustrator CS4 today. (03/05/09).

Right after the final save (literally), I am no longer able to open it.

"This SVG is invalid. Validate it before opening."

I am so frustrated because I spent several hours and had JUST COMPLETED my work when this happened!

Anybody out there have any suggestions?

This file was created from scratch on Illustrator CS4. It is about 10MB in size.

Thank you!
-Alex
A***@adobeforums.com
2009-03-05 22:16:50 UTC
Permalink
SVG is version 1.2 (what I saved it in).

I tried opening the ~10MB file in Word--just to see the code (I have no idea what to look for)...and I got this error from Word:

End tag 'image' does not match the start tag 'switch'.

Location: Line: 622, Column: 6

I went to line 622, but did not notice anything 'strange'. (At least to me!)
M***@adobeforums.com
2009-03-06 10:30:14 UTC
Permalink
Well, but why did you choose to not also save a native AI file for backup? This should be your common "best practice" - always save a version in the program's native format, regardless of later use of derivatives. Specific to your case it would seem that simply the closing statement for the switch is missing, which may have to do with the file being rather large and possibly having gotten truncated on save. Could quite well be, that other essential data is missing, too. In any case I would open it in a editor with syntax highlighting (Dreamweaver, Extend Script Toolkit, SciTe, TextPad) and support for XML syntax definitions. Missing tags should be flagged and even if they aren't, you could work your way through the hierarchy by collapsing/ folding code sections, starting at the most deeply nested tag pair moving outward.

Mylenium
Rafael B. Tauil
2009-03-20 23:10:51 UTC
Permalink
Open it with Inkscape and them save it again. It will "release" your
file.

It messed up my layers but everything else looks ok.

Rafael B. Tauil
Post by M***@adobeforums.com
Well, but why did you choose to not also save a native AI file for backup? This should be your common "best practice" - always save a version in the program's native format, regardless of later use of derivatives. Specific to your case it would seem that simply the closing statement for the switch is missing, which may have to do with the file being rather large and possibly having gotten truncated on save. Could quite well be, that other essential data is missing, too. In any case I would open it in a editor with syntax highlighting (Dreamweaver, Extend Script Toolkit, SciTe, TextPad) and support for XML syntax definitions. Missing tags should be flagged and even if they aren't, you could work your way through the hierarchy by collapsing/ folding code sections, starting at the most deeply nested tag pair moving outward.
Mylenium
Loading...