Re: How can I parse this with clojure.contrib.zip-filter.xml ?

2010-01-23 Thread Steve Purcell
On 23 Jan 2010, at 02:53, James Reeves wrote: On Jan 23, 2:29 am, David Cabana drcab...@gmail.com wrote: What I'd like to get from 'tickets' is something like ( [Alice [foo]] [Bob [bar baz]]), that is, output that ties incidents to customers. So far it has eluded me. xml- just returns a

How can I parse this with clojure.contrib.zip-filter.xml ?

2010-01-22 Thread David Cabana
I have been fooling around with clojure.contrib.zip-filter.xml, and feel like I'm stuck on something that should be simple. Below is code showing what I'm talking about. I'm trying to parse some simple xml, but can't quite get what I'm after. (ns foo (:require [clojure.xml :as xml]) (:require

Re: How can I parse this with clojure.contrib.zip-filter.xml ?

2010-01-22 Thread James Reeves
On Jan 23, 2:29 am, David Cabana drcab...@gmail.com wrote: What I'd like to get from 'tickets' is something like ( [Alice [foo]]  [Bob [bar baz]]), that is, output that ties incidents to customers. So far it has eluded me. xml- just returns a sequence of matches. If you want nested matches,

Re: How can I parse this with clojure.contrib.zip-filter.xml ?

2010-01-22 Thread David Cabana
James, That worked beautifully. I knew it had to be simple, but I was drawing a total blank. Thank you, David. On Fri, Jan 22, 2010 at 9:53 PM, James Reeves weavejes...@googlemail.com wrote: On Jan 23, 2:29 am, David Cabana drcab...@gmail.com wrote: What I'd like to get from 'tickets' is