>> (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
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
12 matches
Mail list logo