[xquery-talk] namespace declarations in an element

Leo Studer leo.studer at varioweb.ch
Thu May 26 06:11:57 PDT 2011


Hello

I would like to do something like

for $i in /root/namespaces ...

to use them for further processing in a query.

Cheers
Leo


On 26.05.2011, at 13:08, Michael Kay wrote:

On 26/05/2011 11:42, Leo Studer wrote:
> Hello
> 
> can anyone help how I get the three namespaces out of<root>  with xpath/xquery?
> 
> <?xml version="1.0"?>
> <root xmlns:a="http://a.ch" xmlns:b="http://b.ch" xmlns:c="http://c.ch">
>     <a:test/>
>     <b:test/>
>     <c:test/>
> </root>
> 
> Thanks in advance
> Leo
> _______________________________________________
> talk at x-query.com
> http://x-query.com/mailman/listinfo/talk
> 
When you say "get them out", do you mean "retrieve them" or "remove them"?

Excuse my poor American.

Michael Kay
Saxonica
_______________________________________________
talk at x-query.com
http://x-query.com/mailman/listinfo/talk




More information about the talk mailing list