Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
"<metadata>"

Container for metadata about the document or its parent element, such as authorship, licensing, or RDF descriptions.

The <metadata> element and its contents are never rendered.

<metadata> is a descriptive element. Its contents are typically structured data from another XML namespace (for example, Dublin Core or RDF), and are meaningful only to processors that understand that data, not to the SVG renderer. Donner recognizes the element so it is not treated as an unknown element, keeps it out of the render tree, and retains its text content so it can be inspected through the DOM.

<svg width="100" height="100">
<metadata>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">...</rdf:RDF>
</metadata>
<circle cx="50" cy="50" r="40" />
</svg>

The concatenated text content is available programmatically via SVGMetadataElement::textContent. Because the element is non-rendered, <metadata> never changes the rendered pixels.