Re: XML parsing with namespace prefixes

2012-10-19 Thread Ben Smith-Mannschott
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

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

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