SVG file upload error

Submitted by Vevangui on October 6, 2025
Hello there! I'm trying to make a quiz about the municipalities of Castilla y León with an SVG map alongside it. I downloaded the file from Wikicommons but JetPunk rejected it alleging "Uploaded file does not contain valid XML markup".

What does this mean? And how can I obtain a valid SVG file?

On a different note, I downloaded an SVG file from the same website for the municipalities of Palencia and it did work, but when I click "Get SVG IDs", a table with two columns and four rows appear, the first column reading "Path ID", "prov00p34", "a", "", and the second one reading "Classes", "None found", "None found", and "None found", in descending order with the last three cells' text being in red.

How can I obtain these SVG IDs? Are they embedded in the file, should I search for another one? If so, where?

I appreaciate any help I can get.

7 Comments
+3
Level 73
Oct 6, 2025
I don't really understand XML and I will not pretend to. Though I can with the second part. To obtain the paths, you might need an SVG editor. I'd recommend Inskcape if you are on a desktop device. From there you can open the SVG and check the IDs of the paths.
+2
Level 46
Oct 6, 2025
I do have Inkscape downloaded, but never really got the hang of it. I'll look into it, I hope it's fairly straightforward, thank you!
+3
Level 73
Oct 6, 2025
This part isn't too complex. Have you read the SVG Guide? It helped me a lot starting out. It also mentions a method of fixing XML issues in the 'Troubleshooting' section, so you might find that handy.
+2
Level 46
Oct 6, 2025
I partially have read it, yes. I now have the individual SVG ID paths, but I'm trying to figure out what the classes mean and how to assign them.

Is there a way to mass edit the class? None of the 413 paths have a class, and I'd rather not add the class 413 times. I also have 2 paths (one with an additional node) and 2 IDs for each region in the map, is that normal?

+1
Level 73
Oct 7, 2025
Yes, you can edit classes, but i don't think it matters in this case. What you need is the ID of each path so they light up when guessed correctly/incorrectly.

Are the two paths identical apart from that additional node? Because if they are, you can just delete one of them.

+2
Level 46
Oct 16, 2025
The paths were actually not identical, one for the region itself and one for the border surrounding it.

I just sumbitted the quiz! I just wanted to thank you for you help, you were really, really helpful.

I'll now work towards the XML one, wish me luck!

+1
Level 71
Oct 6, 2025
Just wondering, are you using a text-file svg?

Because when I make a mistake in the code, it says that (maybe this is something Dimby could help with?)