Hi @abhi18av,
I’m not familiar with either the Android or Magento XML format. Your magenta example in particular seems to have some xml inside xml, encoded as a string. Is that really how it’s supposed to look?
I would urge you to look at enlive, it allows you to deal with xml using selectors not unlike CSS or XPath, except that selectors are just clojure vectors, e.g. [:body :#app :li].
Unfortunately the documentation to enlive is pretty terrible. The README is an absolute mess (skip the first several pages until you get to the section titled “older stuff”), and most docs you find focus on using it as a templating system. The main namespace is called net.cgrand.enlive-html although it just deals with Clojure xml data, …
I would look at these sections of the README: selectors, the at form, transformations, as well as the select function. Keep the API docs handy as well.
There are several functions that will parse html/xml, although if you’re dealing with xml I would use clojure.xml/parse, the return value of that is perfectly suitable for use with select, at etc.
I hope that helps. If you’re still stuck I can write up a small example later.