When you create an SVG file in Inkscape, Inkscape adds some attributes it uses itself. If such an SVG file is used directly in HTML markup, HTML validators start complaining at it, for example, Nu Html Checker.
In particular, it reports errors about the additional namespaces (for example, "Attribute xmlns:dc not allowed here" and "Attribute with the local name xmlns:dc is not serializable as XML 1.0"), errors about non-standard attributes (for example, "Attribute inkscape:connector-curvature not allowed on element path at this point") and elements (for example, "Element name sodipodi:namedview cannot be represented as XML 1.0").
The calculator below removes the custom namespaces and custom attributes and elements from an SVG file. A detailed list of removed entities can be found under the calculator.
Currently, the following entities are removed from an SVG file:
- XML comments
- all elements prefixed with sodipodi
- element rdf:RDF
- all attributes prefixed with sodipodi
- all attributes prefixed with inkscape
- all style attributes prefixed with -inkscape