exception when using xml-parse
pallix opened this issue · comments
Hello,
I have a problem when parsing this file
with the xml-parse function:
Content is not allowed in prolog.
[Thrown class org.xml.sax.SAXParseException]
Restarts:
0: [QUIT] Quit to the SLIME top level
Backtrace:
0: org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
1: javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
2: javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
3: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
4: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
5: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
6: java.lang.reflect.Method.invoke(Method.java:597)
7: clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:90)
8: clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28)
9: clojure.xml$startparse_sax.invoke(xml.clj:76)
10: clojure.xml$parse.invoke(xml.clj:92)
[No Locals]
11: clojure.xml$parse.invoke(xml.clj:86)
12: analemma.xml$get_xml_map.invoke(xml.clj:82)
13: analemma.xml$parse_xml.invoke(xml.clj:92)
14: user$eval41545.invoke(NO_SOURCE_FILE:1)
15: clojure.lang.Compiler.eval(Compiler.java:5424)
16: clojure.lang.Compiler.eval(Compiler.java:5391)
17: clojure.core$eval.invoke(core.clj:2382)
18: swank.commands.basic$eval_region.invoke(basic.clj:47)
I think I just missused the API. Sorry.