Re: More Clojure XML challenges

2014-07-24 Thread Adrian O'Sullivan
Great, thanks for the feedback. Will try it tomorrow. On Thursday, July 24, 2014 7:22:35 PM UTC-4, Stan wrote: > > > On 07/24/2014 02:45 PM, Adrian O'Sullivan wrote: > > I'm really struggling to understand how to parse XML in Clojure

More Clojure XML challenges

2014-07-24 Thread Adrian O'Sullivan
I'm really struggling to understand how to parse XML in Clojure. Here's my xml: java.complexity.HelloWorld.notcomplex() 2 1 0 java.complexity.HelloWorld.complex(int) 4 2 0 ... etc I can do (xml-seq (xml/parse .. )) on this, or

Re: Clojure XML - is there a better way?

2014-07-22 Thread Adrian O'Sullivan
Yes good point, makes me feel the solution is maybe ok. I appreciate the feedback, thanks. On Tuesday, July 22, 2014 4:55:53 PM UTC-4, Mike Fikes wrote: > > My only gut reaction is that, without a root node, it doesn't seem that > you have "XML". (It is certainly not a well formed document, and

Clojure XML - is there a better way?

2014-07-22 Thread Adrian O'Sullivan
Hi! I struggled to use clojure.data.zip.xml in the absence of a root node. My XML looks like this: http://pmd.sourceforge.net/pmd-5.1.2/rules/java/codesize.html#TooManyMethods"; priority="3"> This class has too many methods, consider refactoring it. http://pmd.sourceforge.net/pmd-5.1.2/