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 bu...@apache.org on 2002/01/15 23:10:37 UTC
DO NOT REPLY [Bug 5873] New: -
SAX parser cannot process entity references correctly
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5873>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5873
SAX parser cannot process entity references correctly
Summary: SAX parser cannot process entity references correctly
Product: Xerces-J
Version: 1.3.0
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: SAX
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: mark.risman@ubswarburg.com
When I use the "parse" method, with a filename as an argument, the XML file
that is referred to will load correctly except when a special-character entity
reference is encountered (e.g. &). When this happens, the data containing
the entity reference is truncated. I have confirmed this by inspecting the
value which appears in the "characters" method.
The portion of my code where I call the parse method is as follows:
.
.
.
XMLReader saxParser = XMLReaderFactory.createXMLReader
("org.apache.xerces.parsers.SAXParser");
saxParser.setContentHandler(...) ;
saxParser.parse(fileName);
.
.
.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org