37,719
社区成员
发帖
与我相关
我的任务
分享
(use 'xml.dom)
(prn (->> xml xml->doc (xpath-nodes "//job") (map get-attributes)))
({"DecreaseHour" "1", "ne_type" "101", "table" "tpa_radio_sum", "timestamp" "first_result1", "where" "and ne_type=101 and sv_id=-1 and sv_cat_id =-1"} {"DecreaseHour" "2", "ne_type" "102", "table" "tpa_radio_sum", "timestamp" "first_result2", "where" "and ne_type=101 and sv_id=-1 and sv_cat_id =-1"} {"DecreaseHour" "3", "ne_type" "103", "table" "tpa_radio_sum", "timestamp" "first_result3", "where" "and ne_type=101 and sv_id=-1 and sv_cat_id =-1"})
(prn (->> xml xml->doc (xpath-nodes "//job/@DecreaseHour") (map get-text)))
("1" "2" "3")