Hi,
Recently I found myself searching for a white space which got lost somewhere between reading an XML file and presenting some results from that via a little webapp. I think, I could track it down to the following example: user> (clojure.pprint/pprint (clojure.zip/xml-zip (clojure.xml/parse (java.io.ByteArrayInputStream. (.getBytes "<root> <ok> <span>Hello </span> <span>World</span> </ok> <ok> <span>Hello </span> dear <span>World</span> </ok> <wheredidmyspacego> <span>Hello</span> <span>World</span> </wheredidmyspacego> </root>"))))) [{:tag :root, :attrs nil, :content [{:tag :ok, :attrs nil, :content [{:tag :span, :attrs nil, :content ["Hello "]} {:tag :span, :attrs nil, :content ["World"]}]} {:tag :ok, :attrs nil, :content [{:tag :span, :attrs nil, :content ["Hello "]} " dear " {:tag :span, :attrs nil, :content ["World"]}]} {:tag :wheredidmyspacego, :attrs nil, :content [{:tag :span, :attrs nil, :content ["Hello"]} {:tag :span, :attrs nil, :content ["World"]}]}]} nil] Take a look at the last tag "wheredidmyspacego". The whitespace between the span tags gets lost whereas the " dear " in the second example is preserved including surrounding spaces. Is this on purpose and/or expected behavior? Regards, Stefan -- -- 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/groups/opt_out.