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
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
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
>
> 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
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
>
> --
&
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
>> (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
:
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
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
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
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
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
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
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
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
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.
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
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 ?
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
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
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
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,
22 matches
Mail list logo