SVG Import incorrect size

High everyone.

I know this topic has been raised before but the answers I’ve seen have not actually answered the question for me. I am trying to import an SVG to easel but the size is totally wrong. I am thinking it’s likely defaulting to px (pixels) instead of mm (millimeters) like it should for my file.

The answers I’ve seen so far on this board are of the form “Tell Inkscape to make it be mm” or “Go to this setting in Adobe and chose the scale”. The problem is I’m writing this by hand. I can’t figure out how to make the file actually have a millimeter unit.

Here’s my file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
    "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="40mm" height="40mm">

This appears as a circle with a radius of about 6mm if I had to guess. I can only align it with the grid and guess but the diameter of the whole circle is slightly bigger than the 10mm grid square.

I’ve added “40mm” as the width of my file which I think is what the SVG standard does to set the units. What is Easel reading? How do I change this?

try

'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="40mm" height="40mm" viewBox="0 0 40 40'">

That ended up working, thank you.