Re: pre and post assertions, always in the meta data?

2022-02-15 Thread Sean Corfield
Whilst you solved your problem, you didn't get an answer about metadata. There are multiple places metadata can appear in a function definition: dev=> (defn ^{:one true} func (^{:two true} [x] {:three true} x) {:four true}) #'dev/func dev=> (meta #'func) {:one true, :arglists ([x]), :four true,

Re: how do I debug a cryptic XML error?

2022-02-15 Thread Laws
Okay, this seemed to fix the problem: cpe-dictionary (-> "official-cpe-dictionary_v2.3.xml" (java.io.FileInputStream.) (xml/parse)) xmlzipper (clojure.zip/xml-zip cpe-dictionary) xmlnode (-> xmlzipper

Re: how do I debug a cryptic XML error?

2022-02-15 Thread Laws
I changed the code a bit: cpe-dictionary (-> "official-cpe-dictionary_v2.3.xml" (java.io.StringReader.) (xml/parse)) xmlzipper (clojure.zip/xml-zip cpe-dictionary) Now I get this:

how do I debug a cryptic XML error?

2022-02-15 Thread Laws
So, I went to the government NVD website: https://nvd.nist.gov/products/cpe I downloaded the CPE Dictionary and unpacked it. It looks like standard XML. I copy and paste the standard XML example given on the Clojure XML documentation page: cpe-dictionary (->