[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

How can I retrive namespace defined in xml

Markus Pilman mpilman at student.ethz.ch
Mon Jan 30 05:34:54 PST 2012


  How can I retrive namespace defined in xml
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 <http://x-query.com/mailman/listinfo/talk> 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
> http://x-query.com/mailman/listinfo/talk
> [+918655517141]
> [+919904983614]
>
>
> _______________________________________________
> http://x-query.com/mailman/listinfo/talk
> http://x-query.com/mailman/listinfo/talk


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.