Hi,
declare function functx:namespaces-in-use
( $root as node()? ) as xs:anyURI* {
distinct-values(
$root/descendant-or-self::*/(.|@*)/namespace-uri(.))
} ;
You can look it up here:
http://www.xqueryfunctions.com/xq/functx_namespaces-in-use.html
Hope this helps
Markus
On Mon, Jan 30, 2012 at 2:26 PM, Kunal Chauhan <[email protected]> wrote:
>
> Hi,
>
> I want to retrive namespace that are defined in xml file.
> so how can I retrive it ?
>
> for Eg.
>
> <abc xmlns:temp=".....">
>
> <xyz xmlns:temp2="....">
> </xyz>
>
> </abc>
>
> I want to retrive each namespace defined in xml file.
> I am able to retrive each and every attribute. but can't retrive namespace.
> so how can I get that ????
>
> Thanks,
>
> --
> Kunal Chauhan
> [email protected]
> [+918655517141]
> [+919904983614]
>
>
> _______________________________________________
> [email protected]
> http://x-query.com/mailman/listinfo/talk
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk