Make SVG document actually valid