Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Nightly Builds
-
None
-
None
-
Operating System: All
Platform: All
-
8461
Description
1. It constructs an InputSource with a Reader instead of with an InputStream,
thus effectively forcing the XML parser to interpret the XML file as it is
written in default platform encoding instead of honoring eventual <?xml
encoding="..."?> declarations.
2. It does not set the system id of the input source to "file://" +
file.getAbsolutePath(), therefore making it impossible to resolve external
entities referenced by relative URLs in the XML file.
A patch is attached that fixes both problems.