This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-21
Channels
- # aws (2)
- # bangalore-clj (1)
- # beginners (25)
- # boot (2)
- # cider (176)
- # clara (73)
- # cljs-dev (6)
- # cljsrn (31)
- # clojure (40)
- # clojure-greece (9)
- # clojure-india (1)
- # clojure-italy (14)
- # clojure-nl (9)
- # clojure-russia (4)
- # clojure-uk (156)
- # clojurescript (124)
- # core-async (37)
- # cursive (2)
- # data-science (2)
- # datomic (22)
- # emacs (3)
- # fulcro (32)
- # graphql (6)
- # java (3)
- # lein-figwheel (19)
- # lumo (29)
- # nyc (1)
- # off-topic (9)
- # onyx (15)
- # portkey (12)
- # precept (2)
- # re-frame (15)
- # reagent (10)
- # rum (7)
- # schema (2)
- # shadow-cljs (48)
- # tools-deps (35)
- # yada (1)
Всем привет. Вопрос - есть файл xml (около 2 гб) - задача его разобрать (правила изместны) Подскажите пример как на кложуре читать файл по тегам (последовательно обходя файл, а не загружая его полностью в память)
Судя по докам, стандартный parse ленивый https://clojure.github.io/data.xml/
parse
function
Usage: (parse source & opts)
Parses the source, which can be an
InputStream or Reader, and returns a lazy tree of Element records.
Лучше зипперы попробовать сразу, вместо tree-seq/walk. http://blog.korny.info/2014/03/08/xml-for-fun-and-profit.html