You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "John Phoenix (JIRA)" <xe...@xml.apache.org> on 2014/01/20 18:36:21 UTC

[jira] [Created] (XERCESJ-1626) Java SAX parser returns corrupted data from an XML file containing a long comments

John Phoenix created XERCESJ-1626:
-------------------------------------

             Summary: Java SAX parser returns corrupted data from an XML file containing a long comments
                 Key: XERCESJ-1626
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1626
             Project: Xerces2-J
          Issue Type: Bug
          Components: SAX
         Environment: Windows XP jdk1.7.0_45
            Reporter: John Phoenix
            Priority: Minor


I am using SAX parser with validation enabled (though this doesn't seem to make any difference) to read a configuration file for my application.  I have placed a number of explanatory comments into the XML file to remind me how to create the configuration.  Some of these are around 30 lines in length.  With the comments present, the configuration data returned by the SAX parser contains some corrupted elements, though these do not immediately follow the comment.  With the long comments removed, the data appears to be read correctly.
I can supply XML and XSD files that display the issue, and even a NetBeans project that shows the problem if that would help.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org