On Apr 1, 2016 11:41 AM, "Francis Avila" <franci...@gmail.com> wrote: > > Are you sure that it changes the child element order? It hasn't in my experience. Example: > > (clojure.xml/parse (io/input-stream (.getBytes "<a><b1/><a1/><a2/><a3/><a4/></a>" "UTF-8"))) > => > {:tag :a, > :attrs nil, > :content [{:tag :b1, :attrs nil, :content nil} > {:tag :a1, :attrs nil, :content nil} > {:tag :a2, :attrs nil, :content nil} > {:tag :a3, :attrs nil, :content nil} > {:tag :a4, :attrs nil, :content nil}]} > > > Do you have a counter-example? Or are you talking about attribute nodes maybe? > > Also the only parser included with clojure.xml already uses SAX: it just supplies a content handler that builds the clojure structures clojure.xml/parse returns. > >
Yeah, if it changes the order of element nodes then it's broken, and it would very surprising to discover this. > > On Friday, April 1, 2016 at 10:39:10 AM UTC-5, Olek wrote: >> >> Hi! >> >> I need a stable clojure.xml/parse. >> Unfortunately current implementation changes the order of child elements in a node. >> I use xml as a form of language for DSL. Please don't suggest switching to clojure structures because non-clojure programmers (actually analysts) are editing it and also there are such business requirements. >> Do you know how to achieve that (do I have write SAX parser?! ;-( )? It would be good if the outputting data structure was the same as for clojure.xml/parse (or I will just transform it to desired form). >> >> Thanks in advance! >> Olek > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.