Accidentally deleted some code

Discuss SVG code, accessible via the XML Editor.
nokjao
Posts: 1
Joined: Fri Jan 24, 2014 10:24 pm

Accidentally deleted some code

Postby nokjao » Fri Jan 24, 2014 10:34 pm

I was opening the SVG code of my inkscape work to locate the <sodipodi:guide> tag to delete the guides. However, I accidentally deleted more and now inkscape can't open my file!

It pops "Failed to load the requested file /../../xxx.svg

Here is the suspected omitted part. I was at line 85 and deleted the whole chuck downward!! Please help.

Code: Select all

sodipodi:docname="AD Pivacy 27x39 cm 2 Layout 3 Design REV2.svg"><metadata
     id="metadata8"><rdf:RDF><cc:Work
         rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
     id="defs6"><inkscape:path-effect
       effect="spiro"
       id="path-effect4726"
       is_visible="true" /><inkscape:path-effect
       effect="spiro"
       id="path-effect4722"
       is_visible="true" /><inkscape:path-effect
       effect="spiro"
       id="path-effect3950"
       is_visible="true" /><inkscape:path-effect
       effect="spiro"
       id="path-effect3935"
       is_visible="true" /><inkscape:path-effect
       effect="spiro"
       id="path-effect3921"
       is_visible="true" /><inkscape:path-effect
       effect="spiro"
       id="path-effect3917"
       is_visible="true" /><inkscape:path-effect
       effect="spiro"
       id="path-effect3911"
       is_visible="true" /><inkscape:path-effect
       effect="spiro"
       id="path-effect4704"
       is_visible="true" /><inkscape:path-effect
       is_visible="true"
       id="path-effect4700"
       effect="spiro" /><inkscape:path-effect
       is_visible="true"
       id="path-effect4696"
       effect="spiro" /><inkscape:path-effect
       effect="spiro"
       id="path-effect4692"
       is_visible="true" /><inkscape:path-effect
       effect="spiro"
       id="path-effect4686"
       is_visible="true" /><inkscape:path-effect
       is_visible="true"
       id="path-effect4682"
       effect="spiro" /><inkscape:path-effect
       effect="spiro"
       id="path-effect4678"
       is_visible="true" /><inkscape:path-effect
       is_visible="true"
       id="path-effect4674"
       effect="spiro" /><inkscape:path-effect
       effect="spiro"
       id="path-effect3902"
       is_visible="true" /><inkscape:path-effect
       is_visible="true"
       id="path-effect3890"
       effect="spiro" /><inkscape:path-effect
       is_visible="true"
       id="path-effect3888"
       effect="spiro" /><inkscape:path-effect
       is_visible="true"
       id="path-effect3886"
       effect="spiro" /><inkscape:path-effect
       is_visible="true"
       id="path-effect3884"
       effect="spiro" /><inkscape:path-effect
       is_visible="true"
       id="path-effect3882"
       <!--Here is where I starte deleting the sodipodi:guide chuck downward!! -->
       effect="spiro" /><inkscape:path-effect
       is_visible="true"
       id="path-effect3880"
       effect="spiro" /><inkscape:path-effect
       is_visible="true"
       id="path-effect3878"
       effect="spiro" /><inkscape:path-effect
       is_visible="true"
       id="path-effect5741"
       effect="spiro" /><inkscape:path-effect
       is_visible="true"
       id="path-effect5739"
       effect="spiro" /><inkscape:path-effect
       is_visible="true"


Please, anyone who knows what should belong there. I need to finish my work asap! Thanks a lot in advance!!!

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Accidentally deleted some code

Postby Lazur » Thu Jan 30, 2014 11:55 pm

Ohnoes.
The file ends before the defs section?
If so, there is not much we can do about it.

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: Accidentally deleted some code

Postby v1nce » Fri Jan 31, 2014 8:56 am

As Lazur URH said if this is all that remains after you cut it then it's dead.

But you said > "I was at line 85 and deleted the whole chuck downward!!" which is inconsistent with what we see (more path effect after the deleted section ; there should be none or if it is present then the core data should be under or were you in a cut/past frenzy)

So if it's only an excerpt post the complete svg or try to remove the <defs> to </defs> part


Return to “SVG / XML Code”