Bugs item #681658, was opened at 2003-02-06 14:59 Message generated for change (Comment added) made by polx You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=681658&group_id=16035
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed Resolution: None Priority: 5 Submitted By: Christian Oetterli (christianoett) Assigned to: Nobody/Anonymous (nobody) Summary: Parsing causes DocumentException if # exists in file name Initial Comment: When parsing using SAXReader.read(File) a DocumentException is thrown if the # sign exists in the file name. This is not the case when parsing via SAXReader.read(InputSource) this will cause a DocumentException: new SAXReader().read(new File("#.xml")); this will not: new SAXReader().read(new InputSource(new FileReader (new File("#.xml")))); ---------------------------------------------------------------------- Comment By: Paul Libbrecht (polx) Date: 2006-06-19 23:14 Message: Logged In: YES user_id=647450 The patch as included in the current SAXReader.java is not good to me! Basically... it means that relative resolution is *not possible* for files and it also mean, for some weird reasons, to me, that encoding are handled wrong. I am doing this experience with the maven xdoc plugin 1.9.2 and with jelly 1.1-SNAPSHOT and jelly xml-taglib 1.2-SNAPSHOT. I would like to suggest two alternatives: - consider that the "#" that could be in the file-name should probably be URL-encoded (and do so if file.toURL() doesn't which seems to be the case) - or at least only use the FileInputStream alternative if there is such a "#" and only then. I could provide patches and tests... later... thanks paul ---------------------------------------------------------------------- Comment By: James Strachan (jstrachan) Date: 2003-02-12 10:05 Message: Logged In: YES user_id=65291 Fixed by Maarten ---------------------------------------------------------------------- Comment By: Maarten Coene (maartenc) Date: 2003-02-12 01:04 Message: Logged In: YES user_id=178745 Fixed in CVS ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=681658&group_id=16035 _______________________________________________ dom4j-dev mailing list dom4j-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-dev