Skip to content

Commit 5e2071d

Browse files
committed
Adding a flag to toggle namespace awareness
1 parent 86fe091 commit 5e2071d

File tree

1 file changed

+2
-2
lines changed
  • src/main/clojure/clojure/data/xml/jvm

1 file changed

+2
-2
lines changed

src/main/clojure/clojure/data/xml/jvm/parse.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
(defn pull-seq
7070
"Creates a seq of events. The XMLStreamConstants/SPACE clause below doesn't seem to
7171
be triggered by the JDK StAX parser, but is by others. Leaving in to be more complete."
72-
[^XMLStreamReader sreader {:keys [include-node? location-info skip-whitespace] :as opts} ns-envs]
72+
[^XMLStreamReader sreader {:keys [include-node? location-info skip-whitespace namespace-aware] :as opts} ns-envs]
7373
(lazy-seq
7474
(loop []
7575
(let [location (when location-info
@@ -79,7 +79,7 @@
7979
XMLStreamConstants/START_ELEMENT
8080
(if (include-node? :element)
8181
(let [ns-env (nss-hash sreader (or (first ns-envs) pu/EMPTY))
82-
tag (qname (.getNamespaceURI sreader)
82+
tag (qname (when-not namespace-aware (.getNamespaceURI sreader))
8383
(.getLocalName sreader)
8484
(.getPrefix sreader))
8585
attrs (attr-hash sreader)

0 commit comments

Comments
 (0)