|
[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 xmlG. Ken Holman gkholman at CraneSoftwrights.comMon Jan 30 05:33:00 PST 2012
At 2012-01-30 18:56 +0530, Kunal Chauhan 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 ???? A combination of two calls using an element argument for context: in-scope-prefixes( $element ) - returns a sequence of namespace prefixes namespace-uri-for-prefix( $prefix, $element ) - returns a URI of namespace I hope this helps. . . . . . . . . . . Ken -- Contact us for world-wide XML consulting and instructor-led training Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0 http://ude.my/uoui9h Crane Softwrights Ltd. http://www.CraneSoftwrights.com/q/ G. Ken Holman mailto:http://x-query.com/mailman/listinfo/talk Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








