On Jun 23, 11:37 pm, Stuart Halloway stuart.hallo...@gmail.com
wrote:
I can certainly see why this would be confusing! Is there a way to make it
better without violating the expectations of someone who knows the Java API
and expects strings to be treated as URIs?
Perhaps throwing an
(clojure.xml/parse test1.log)
works correctly, output omitted
(clojure.xml/parse test#1.log)
Premature end of file.
[Thrown class org.xml.sax.SAXParseException]
$ mv test\#1.log test2.log
(clojure.xml/parse test2.log)
works correctly, output omitted
test#1.log is a copy of test1.log
It looks like it's having trouble figuring out if test#1.log is a
file path or a URI.
Not sure what a real solution is but this seems to work as a
workaround:
(clojure.xml/parse (java.io.File. test#1.log))
On Jun 23, 12:30 pm, Zak Wilson zak.wil...@gmail.com wrote:
(clojure.xml/parse
clojure.xml/parse is not documented to handle filenames-as-strings at all. It
treats strings as URIs, deferring to the host (JVM) notion of URI as
implemented in the underlying API.
I can certainly see why this would be confusing! Is there a way to make it
better without violating the