Re: I am looking for xml parsing lib

2015-08-25 Thread Atamert Ölçgen
ug 25, 2015 at 11:31 AM, Josh Kamau wrote: > Thanks all. clojure.xml/parse worked for me. > > On Tue, Aug 25, 2015 at 1:52 AM, Jordan Schatz > wrote: > >> Which is the recommended xml parsing lib for clojure? >> >> >> I think you are after clojure.xml/par

Re: I am looking for xml parsing lib

2015-08-25 Thread Josh Kamau
Thanks all. clojure.xml/parse worked for me. On Tue, Aug 25, 2015 at 1:52 AM, Jordan Schatz wrote: > Which is the recommended xml parsing lib for clojure? > > > I think you are after clojure.xml/parse > http://conj.io/store/v1/org.clojure/clojure/1.7.0/clj/clojure.xml/parse

Re: I am looking for xml parsing lib

2015-08-24 Thread Theodore Konukhov
I found this blog post very useful. It has a pretty great overview of XML parsing libs/techniques in Clojure. http://blog.korny.info/2014/03/08/xml-for-fun-and-profit.html - Theodore. On Monday, August 24, 2015 at 8:48:50 PM UTC+3, Josh Kamau wrote: > > Hello; > > Which is the rec

Re: I am looking for xml parsing lib

2015-08-24 Thread Jordan Schatz
> > Which is the recommended xml parsing lib for clojure? I think you are after clojure.xml/parse http://conj.io/store/v1/org.clojure/clojure/1.7.0/clj/clojure.xml/parse/ and friends: http://conj.io/store/v1/org.clojure/clojure/1.7.0/clj/clojure.core/xml-seq/ http://conj.io/store/v1/org.c

Re: I am looking for xml parsing lib

2015-08-24 Thread blake watson
I believe that's it, though. On Mon, Aug 24, 2015 at 10:48 AM, Josh Kamau wrote: > Hello; > > Which is the recommended xml parsing lib for clojure? > > clojure.data.xml was last updated 10months ago and is still on version > 0.0.8 > > Thanks > Josh > > -- &

I am looking for xml parsing lib

2015-08-24 Thread Josh Kamau
Hello; Which is the recommended xml parsing lib for clojure? clojure.data.xml was last updated 10months ago and is still on version 0.0.8 Thanks Josh -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: XML parsing with namespace prefixes

2012-10-19 Thread Jack Moffitt
>> (zf/xml-> zipper :ListRecords :record :metadata :oai_dc:dc :dc:language >> zf/text) This would require a namespace aware thing, but a possible syntax for this (called Clark notation) is to use the URI of the namespace instead of the prefix: (zf/xml-> zipper :ListRecords :record :metadata :dc :

Re: XML parsing with namespace prefixes

2012-10-18 Thread Ben Smith-Mannschott
On Fri, Oct 19, 2012 at 12:03 AM, Maurits wrote: > Bit of a late reaction, but there is nothing special about a tag with a > namespace prefixed. For example I have been using: > > (zf/xml-> zipper :ListRecords :record :metadata :oai_dc:dc :dc:language > zf/text) > > which works perfectly well. Ye

Re: XML parsing with namespace prefixes

2012-10-18 Thread Maurits
Bit of a late reaction, but there is nothing special about a tag with a namespace prefixed. For example I have been using: (zf/xml-> zipper :ListRecords :record :metadata :oai_dc:dc :dc:language zf/text) which works perfectly well. Maurits Op zondag 22 juli 2012 22:02:59 UTC+2 schreef Marcel

XML parsing with namespace prefixes

2012-07-23 Thread Marcel Möhring
Hi, I am trying to parse an xpdl file. The problem for me is, that every tag is prefixed with xpdl namespace. The lookup from clojure.data.zip.xml always returns nil. (the same code works for non-prefixed XMLs) zipper: [{:tag :xpdl:Package, :attrs {:xmlns:xpdl "http://www.wfmc.org/2008/XP

Re: Need advice about XML parsing and exposing attributes to Java

2012-06-29 Thread Stephen Compall
On Fri, 2012-06-29 at 23:56 +0200, Jacek Laskowski wrote: > They're fine with the job, but they do everything in Java. I thought > I'd introduce Clojure as a functional language to solve some problems > that are functional in nature, like processing XML files. I said I'd > show you how to do it dif

Need advice about XML parsing and exposing attributes to Java

2012-06-29 Thread Jacek Laskowski
Hi, They say that a part of a learning is to ask questions. Lots of questions. That's why I'm here. I need your advice. There's a team I'm a part of where people used to write Java apps. They're fine with the job, but they do everything in Java. I thought I'd introduce Clojure as a functional lan

Re: xml parsing

2011-03-19 Thread Vincent
how to parse such xml and build a defrecord ... any help thanks vincent -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient

Re: xml parsing

2011-03-18 Thread Laurent PETIT
Thanks Alan for the reminder, I had totally forgotten that, and was culprit of thinking that the only way of doing depth-first was postorder. My apologizes, Stu. Cheers, -- Laurent 2011/3/16 Alan > It's one variety of depth-first. Pre-order, post-order, and in-order > are all viable ways of

Re: xml parsing

2011-03-18 Thread Vincent
how to parse such xml and build a defrecord ... any help thanks vincent -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient

Re: xml parsing

2011-03-16 Thread Antony Blakey
On 17/03/2011, at 8:20 AM, Laurent PETIT wrote: > 2011/3/16 Stuart Sierra > I think xml-seq is returning a sequence representing a depth-first traversal > of the XML document. So the first item in the sequence is the entire > document, followed by the first element under the root, and so on.

Re: xml parsing

2011-03-16 Thread Alan
It's one variety of depth-first. Pre-order, post-order, and in-order are all viable ways of doing depth-first searches (though in-order makes less sense for non-binary trees). Assume for the rest of this post the following tree: 1 --2 --3 4 --5 6 --7 - Breadth-first traversal: 1237465

Re: xml parsing

2011-03-16 Thread Laurent PETIT
2011/3/16 Stuart Sierra > I think xml-seq is returning a sequence representing a depth-first > traversal of the XML document. So the first item in the sequence is the > entire document, followed by the first element under the root, and so on. That's not the definition of depth-first, is it ?

Re: xml parsing

2011-03-16 Thread Stuart Sierra
I think xml-seq is returning a sequence representing a depth-first traversal of the XML document. So the first item in the sequence is the entire document, followed by the first element under the root, and so on. -Stuart Sierra clojure.com -- You received this message because you are subscrib

Re: xml parsing

2011-03-16 Thread Abraham
forgot ...Here is the order.xml XYZ Ltd Abcd xyz 123 in -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members ar

Re: xml parsing

2011-03-16 Thread Abraham
sorry i forgot to show order.xml -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe f

xml parsing

2011-03-16 Thread Abraham
Dear friends I am trying to parse xml file following is code (def xml-file "d:/clj/xmlfiles/orders.xml") (def xmldata (clojure.xml/parse xml-file)) (println xmldata) Output is : {:tag :order, :attrs {:orderid 1/2011}, :content [{:tag :party, :attrs nil, :con tent [ XYZ Ltd ]} {:tag :address,