After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 692800 - Libxml2 fails to parse SVG files created with Adobe Illustrator
Libxml2 fails to parse SVG files created with Adobe Illustrator
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: general
2.7.8
Other Windows
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2013-01-29 13:29 UTC by Johan Mattsson
Modified: 2021-07-05 13:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
SVG file created with Adobe Illustrator (1.39 KB, image/svg+xml)
2013-01-29 13:29 UTC, Johan Mattsson
Details

Description Johan Mattsson 2013-01-29 13:29:45 UTC
Created attachment 234724 [details]
SVG file created with Adobe Illustrator

I get this message in a terminal using wine but the error is identical on Windows:

file:///Z:/home/johan/A.svg:3: parser error : Unfinished System or Public ID " or ' expected
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
                      ^
file:///Z:/home/johan/A.svg:3: parser error : Space required after the Public Identifier
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
                      ^
file:///Z:/home/johan/A.svg:3: parser error : SystemLiteral " or ' expected
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
                      ^
file:///Z:/home/johan/A.svg:3: parser error : SYSTEM or PUBLIC, the URI is missing
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
                      ^
file:///Z:/home/johan/A.svg:3: parser error : DOCTYPE improperly terminated
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
                      ^
file:///Z:/home/johan/A.svg:3: parser error : Start tag expected, '<' not found
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
                       ^

The problematic XML file is attached.
Comment 1 Daniel Veillard 2013-01-29 22:09:02 UTC
Hum, I can't reproduce this with the current version on Linux:

thinkpad:~/XML -> ls -l A.svg 
-rw-rw-r--. 1 veillard veillard 1425 Jan 29 23:04 A.svg
thinkpad:~/XML -> md5sum A.svg 
be3b223c647cac5526b606b9be530d68  A.svg
thinkpad:~/XML -> xmllint --noout A.svg
thinkpad:~/XML -> /usr/bin/xmllint --noout A.svg 
thinkpad:~/XML -> /usr/bin/xmllint --version
/usr/bin/xmllint: using libxml version 20900
   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug Zlib Lzma 
thinkpad:~/XML -> 

Could you confirm the same output with the same file on Linux, to make sure
the file wasn't changed somehow by being attached or in the download ?

Daniel
Comment 2 Johan Mattsson 2013-01-29 22:40:52 UTC
I can't reproduce this on Linux either, it seems to be Windows specific.

Linux:
johan@booken:~/Hämtningar$ ls -la A.svg 
-rw-rw-r-- 1 johan johan 1425 jan 25 17:34 A.svg
be3b223c647cac5526b606b9be530d68  A.svg
johan@booken:~/Hämtningar$ xmllint --noout A.svg
johan@booken:~/Hämtningar$ xmllint --version
xmllint: using libxml version 20800
   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug Zlib Lzma 

Wine/Windows:
johan@floden:~$ /usr/i686-w64-mingw32/sys-root/i686-w64-mingw32/bin/xmllint.exe --noout /home/johan/A.svg 
/home/johan/A.svg:3: parser error : Unfinished System or Public ID " or ' expected
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
                      ^
/home/johan/A.svg:3: parser error : Space required after the Public Identifier
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
                      ^
/home/johan/A.svg:3: parser error : SystemLiteral " or ' expected
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
                      ^
/home/johan/A.svg:3: parser error : SYSTEM or PUBLIC, the URI is missing
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
                      ^
/home/johan/A.svg:3: parser error : DOCTYPE improperly terminated
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
                      ^
/home/johan/A.svg:3: parser error : Start tag expected, '<' not found
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
                       ^
johan@floden:~$ /usr/i686-w64-mingw32/sys-root/i686-w64-mingw32/bin/xmllint.exe --version 
Z:\usr\i686-w64-mingw32\sys-root\i686-w64-mingw32\bin\xmllint.exe: using libxml version 20708
   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug Zlib
Comment 3 GNOME Infrastructure Team 2021-07-05 13:24:17 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/libxml2/-/issues/

Thank you for your understanding and your help.