On Fri, Oct 19, 2012 at 12:03 AM, Maurits <maurits.r...@gmail.com> 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.
Yea, but it's a hack. It only works if you know ahead of time which prefix(es) will be used for which namespaces. The prefixes themselves can (and often are) completely arbitrary. What's important is the lexically closest binding of a namespace URI to that prefix. These are equivalent: <x xmlns="ns://foo"/> <a:x xmlns:a="ns://foo"/> <b:x xmlns:b="ns://foo"/> But not equivalent to these: <x/> <a:x xmlns:a="ns://bar" xmlns="ns://foo"/> // Ben -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en