I am trying to parse this bit of rss
<rss xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
<channel>
<title>
Signal RSS - full
</title>
<link>
https://www.mystery.com
</link>
<description>
null
</description>
<pubDate>
Wed, 09 Mar 2022 14:07:31 GMT
</pubDate>
<lastBuildDate>
Wed, 09 Mar 2022 14:07:31 GMT
</lastBuildDate>
<item>
<guid isPermaLink="false">
someid
</guid>
<description>
-- other text
</description>
<text>
BC-AT&T-Discovery-Start-Mega-Bond-Sale-in-Test-of-Uneasy-Market
</text>
<content medium="document" expression="custom" type="text/vnd.IPTC.NewsML" lang="EN" url="https://api.com/syndication/newsml/v12/news/R8FRGG3/a715dac7-5282-4422-be8e" />
</item>
</channel>
</rss>
Fairly standard, right?
using example from https://kyleburton.github.io/clj-xpath/site/ I modified it into this:
(ns clj-xpath-examples.core
(:require
[clojure.string :as string]
[clojure.pprint :as pp])
(:use
clj-xpath.core))
(def input (slurp '.pathToXml.xml'))
(xml->doc input)
which gives me this error I cannot understand:
; IllegalAccessException class clojure.lang.Reflector cannot access class com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl (in module java.xml) because module java.xml does not export com.sun.org.apache.xerces.internal.jaxp to unnamed module @689eb690 jdk.internal.reflect.Reflection.newIllegalAccessException (Reflection.java:392)
Where am I going wrong? If I can use xpath for this it would my solution much neater.