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,
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
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:
clojur
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 (-> "official-cpe-dictionary_v2.3.xm