Fork me on GitHub
#clojure-europe
<
2021-08-05
>
dharrigan05:08:39

Good Mornin!

🌻 3
djm05:08:23

👋

🌻 3
otfrom05:08:53

Morning

🌻 3
simongray06:08:34

morning

🌻 3
thomas07:08:28

morning

👍 3
🌻 3
pez07:08:30

Morning! ☀️

🌻 3
maleghast09:08:25

Bonjour tout le monde!

simongray11:08:18

accidentally wrote a CLJC xml parser

metal 6
reefersleep11:08:07

For fun or profit?

simongray11:08:28

For profit, but it was fun

simongray11:08:02

It was either doing it myself or wrapping the alpha version of clojure.data.xml which has some undesirable behaviour

simongray11:08:19

… undesirable for my purposes at least

otfrom12:08:46

so, should we all be using yours rather than clojure.data.xml?

simongray13:08:03

Not right now, but maybe in the future depending on what you need to do. It parses directly as Hiccup and doesn’t deliberately hide certain attributes, e.g. xmlns. I needed it for pattern matching on the Clojure side and for use with reagent in the browsers.

simongray13:08:07

Also, it makes little sense to me to default to preserving XML comments and whitespace - those things are usually artefacts of the input file, not important data to keep around. You mainly need it if you want to recreate the old XML file, but I want to consume the resulting Hiccup data.

val_waeselynck17:08:12

I wonder how this would contrast to this stuff I wrote some time ago https://github.com/vvvvalvalval/xml-pull Querying XML doesn't seem to be a solved problem

simongray11:08:08

@U06GS6P1N It’s probably similar if you mean the overall goal of the library. I wanted something where I can pull in XML files, declaratively replace parts of it with reagent code, and render it as a compliant web page. A secondary goal has to do with reusing the declarative substitution code to locate metadata in order to generate triples for a Triplestore in the backend (to be used to search for the documents displayed in the frontend). That’s why I needed something that did the XML->Hiccup part in a identical way in both CLJ and CLJS.

reefersleep11:08:54

That's a weird way of saying "Good morning", but it'll do 🤓

reefersleep11:08:01

Good morning!

reefersleep11:08:46

Anyone know of any good tools for analyzing wifi connectivity? I'm trying to improve the wifi experience in my house.