Hi Herwig,

Thanks for the quick response. So I upgraded to the latest version and now
I see my tags represented not as QName Java objects but as horribly long
keywords like so...

xmlns.http%3A%2F%2Fintegration.sprint.com
%2Fv2%2Fcommon%2FCanonicalDataModel.xsd/mqMessageHeader

Is there a way I can shorten them so that they are similar to the ones in
the XML document :can:mqMessageHeader?

Is this what alias-uri is for, I couldn't figure out how it should work.

I'm trying to write a testing DSL on top of Cucumber and need allow my
testers to write simple element accessor paths to pick out and modify
values in the XML documents.

regards, Francis.
On Tue, Dec 20, 2016 at 6:07 PM, Herwig Hochleitner <hhochleit...@gmail.com>
wrote:

> Hi Francis,
>
> first off: if you can afford it, I'd recommend working with the 0.2.0
> series, as the 0.1.0 namespace api is legacy.
>
> In the 0.2.0 series, the mapping of keyword prefix to xmlns is unique and
> fixed, so names are always parsed as keywords (though QName instances still
> are permitted for emitting).
> In the 0.1.0 series, namespaced names are only rewritten to keyword form,
> if there is an active alias, established by declare-ns.
>
> An example for using 0.2.0 is here https://github.com/webnf/
> davstore/blob/master/src/server/webnf/davstore/dav/xml.cljc, though 0.1.0
> works in a similar way, if declare-ns is used.
>
> tag= of xml-zip and other processing equipement should just work as with
> non-namespaced names (which are represented as blank keywords, as before)
>
> data.xml also has qname-uri and qname-local to get at the respective parts
> of an accepted qname representation (keyword, qname instance, string). The
> qname prefix should be completely discarded during xml processing (which
> data.xml does).
>
> hope that helps
>
> --
> 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
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Clojure" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/clojure/tlIHHR58Vqs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to