Fork me on GitHub
#clojure-nl
<
2022-04-06
>
Thierry15:04:41

Iemand hier die clojure.data.xml vaak gebruikt? Van de week had ik iets werkend wat vandaag ineens niet meer werkt, lekker vaag. Ik heb een XML bestand dat ik parse en waar nu ineens de tabs, newlines en linebreaks als strings terugkomen in de lazy sequence die xml/parse maakt. Dit was van de week niet zo waardoor mijn function nu niet meer naar behoren werkt .

borkdude15:04:01

@thierry572 Je hebt waarschijnlijk ge-upgrade naar de nieuwste alpha versie. Daar blijft whitespace bewaard. Let's continue in English. You can turn that whitespace stuff off

borkdude15:04:13

(parse-str :skip-whitespace true)

Thierry15:04:43

@borkdude oops typed Dutch out of habit. That's what I thought so I double checked and had indeed installed the Alpha. Reverted back to the older version and still have it. Even had namespaces in my parsed xml which I could disable with :namespace-aware false

Thierry15:04:54

ooh couldnt find that, ill try that

borkdude15:04:13

I think they should have made this a non-breaking change, but what can you do.

Thierry15:04:30

that actually fixed it

Thierry15:04:53

cost me half a day finding out what happened

Thierry15:04:01

as it worked earlier this week

borkdude15:04:04

You can pay me through Github Sponsors ;)

🙌 1
borkdude15:04:32

(kidding, this one is totally on the house ;))

Thierry15:04:52

What I dont understand that the older version shouldnt support namespaces but actually parses it.. so strange

borkdude15:04:21

Maybe you were accidentally still using the alpha. One way to find out is clojure -Stree or lein deps :tree

Thierry15:04:55

leind deps :tree gives me [org.clojure/data.xml "0.0.8"]

Thierry15:04:04

really strange, but its fixed now! thanks

🙌 2