Re: XML problem

2010-02-10 Thread Alexandre Patry
Hi, yvan wrote: Hello Clojure group I am testing Clojure and I have an error parsing thix XML excerpt below. Is this a SAX bug ou a Clojure bug .. or my mistake ? thank's for help IN REPL (ns x (:require [clojure.xml :as xml]) ) x=> (try (xml/parse "exampleSortieXML.xml")(catch E

Re: XML problem

2010-02-10 Thread Laurent PETIT
thanks to stackoverflow : http://stackoverflow.com/questions/866706/which-characters-are-invalid-unless-encoded-in-an-xml-attribute 2010/2/10 Laurent PETIT : > Here is the proof I was searching ! > > http://www.w3.org/TR/xml/#NT-AttValue > > 2010/2/10 Laurent PETIT : >> Hello Yvan, >> >> I guess

Re: XML problem

2010-02-10 Thread Laurent PETIT
Here is the proof I was searching ! http://www.w3.org/TR/xml/#NT-AttValue 2010/2/10 Laurent PETIT : > Hello Yvan, > > I guess it's neither a clojure nor java SAX parser problem, but rather > a problem in the xml file itself. > > It is illegal to have ampersands in attributes values. > > The amper

Re: XML problem

2010-02-10 Thread Laurent PETIT
Hello Yvan, I guess it's neither a clojure nor java SAX parser problem, but rather a problem in the xml file itself. It is illegal to have ampersands in attributes values. The ampersand & should be replaced by & everywhere in attribute values. In other case, the xml parser tries to resolve what

XML problem

2010-02-10 Thread yvan
Hello Clojure group I am testing Clojure and I have an error parsing thix XML excerpt below. Is this a SAX bug ou a Clojure bug .. or my mistake ? thank's for help IN REPL (ns x (:require [clojure.xml :as xml]) ) x=> (try (xml/parse "exampleSortieXML.xml")(catch Exception e (. e p