SVG Logo Has a DOCTYPE Declaration
The BIMI SVG logo has a DOCTYPE declaration, which SVG Tiny 1.2 does not use and a certificate authority can reject.
The exact error
SVG logo has a DOCTYPE declaration; delete the DOCTYPE declaration (line 1)SVG logo has a DOCTYPE declaration with an internal subset; delete the DOCTYPE declaration (line 1)What Does “SVG Logo Has a DOCTYPE Declaration” Mean?
A DOCTYPE declaration is a line such as <!DOCTYPE svg PUBLIC …> before the <svg> element. It points to a document type definition (DTD). SVG Tiny 1.2 has no DTD, so a BIMI logo has no reason to include one.
A certificate authority can reject a logo with a DOCTYPE when you apply for a VMC or CMC. A DOCTYPE with an internal subset (declarations between square brackets) can also define entities, so the validator stops at it and checks nothing else.
Why Does “SVG Logo Has a DOCTYPE Declaration” Appear?
Design tools often add a DOCTYPE when they export SVG 1.0 or SVG 1.1. The logo keeps it after you change the profile attributes to SVG Tiny P/S by hand.
<?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" version="1.2" baseProfile="tiny-ps" viewBox="0 0 96 96">
<title>Example</title>
</svg><?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny-ps" viewBox="0 0 96 96">
<title>Example</title>
</svg>How Do You Fix “SVG Logo Has a DOCTYPE Declaration”?
Open the logo in a text editor and delete the whole DOCTYPE declaration, including any part between square brackets. Keep the XML declaration if there is one.
If the internal subset defines entities that the logo uses, such as &ns_svg;, replace each entity reference with its value before you delete the DOCTYPE.
What Should You Verify After Fixing “SVG Logo Has a DOCTYPE Declaration”?
Validate the logo again. If the DOCTYPE had an internal subset, the validator did not check the rest of the logo, so new errors can appear now.
Key Takeaways
- SVG Tiny 1.2 has no DTD, so a BIMI logo needs no DOCTYPE.
- A certificate authority can reject a logo with a DOCTYPE.
- Delete the DOCTYPE, including any internal subset.
Upload any logo and BIMI Maker rebuilds it as a validated SVG Tiny PS file.




