Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"SVG data parsing failed cause the document does not have a root node." error on OpenClipArt files #192

Closed
Shnatsel opened this issue Dec 28, 2019 · 1 comment

Comments

@Shnatsel
Copy link
Contributor

Many of the files in OpenClipArt library fail to render with resvg with the following message:

Error: SVG data parsing failed cause the document does not have a root node.

They are rendered by librsvg and Inkscape. Tested on commit e3cfe1a

Archive with all files failing with this error message:
no_root_node.tar.gz

@RazrFalcon
Copy link
Collaborator

An SVG file must have a xmlns="http://www.w3.org/2000/svg" namespace. Without it, it is malformed. Browsers and Batik will not load such files too. I think that Inkscape and librsvg are incorrect in this regard.

For example, librsvg v2.47.1 doesn't support mixed namespaces. You can test it on e-svg-003.svg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants