You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2008/11/17 11:21:48 UTC

DO NOT REPLY [Bug 34905] parseXML does not work with XML header

https://issues.apache.org/bugzilla/show_bug.cgi?id=34905


Helder Magalhães <he...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |helder.magalhaes@gmail.com
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #1 from Helder Magalhães <he...@gmail.com>  2008-11-17 02:21:46 PST ---
I was not being able to reproduce until I pasted the text portion you have
referred into before the "svg" element but after the comment. Doing that will
cause the document to be invalid XML (the document should always start with the
XML preamble [1] [2], comments may follow). If you paste the header into very
beginning of the file, it does works without issuing any error (as expected).

Note that this is more related to "XML parsing" than to "Scripting"
("Component" attribute for the report), although Batik doesn't seem to have a
specific component for that, as an external library (Xerces [3]) is used for
XML parsing - if you still believe there's an underlying issue, please consider
filing a report within that project.

As a side note, although this doesn't interfere with this particular issue,
using Doctype declaration for SVG is generally not recommended [4].

[1] http://www.w3.org/TR/REC-xml/#sec-well-formed
[2] http://mail.python.org/pipermail/expat-discuss/2008-June/002484.html
[3] http://xerces.apache.org/xerces-j/
[4] http://jwatt.org/svg/authoring/#doctype-declaration


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org