   [pom]
   (-> (filter #(tag-equals? % :dependencyManagement) (:content pom))
       first :content first :content))
-
-(get-deps-from-dependency-management pom)
 
 
 (defn- first-char-is-$? [s] (= "$" (subs s 0 1)))

(ns descent.pom-parser
  (:use [clojure.xml :only (parse)])
  (:require [clojure.java.io :as io]))

(defn load-pom [pom-location] (parse (java.io.File. pom-location)))

(def pom (load-pom "resources/pom.xml"))


;(:tag pom)
;(:attrs pom)

;; :content once takes us to the 1st level of data
;(:content pom)

;(def library (-> pom :content (nth 2) :content first))
;(def version (-> pom :content (nth 5) :content first))

(defn- get-library-name-from-pom
  "Given a pom, extract the project name."
  [pom]
  (-> pom :content (nth 2) :content first))

(defn- get-library-version-from-pom
  "Given a pom, extract the project version."
  [pom]
  (-> pom :content (nth 5) :content first))

;(get-properties-from-pom pom)

;(def properties (get-properties-from-pom pom))
;(first properties)



;(contains-version? {:tag :apple.hh})
;(contains-version? {:tag :rivulet.version})

;(filter-out-properties-without-version properties)


;;;; Access the project dependencies through the following logic:

      (subs 1)))


(defn- get-dependencies-from-properties
  "Given the properties portion of a pom, return a seq of "
  [pom]
  (if (pom-has-properties? pom)
