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

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