|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] namespace declarations in an elementGhislain Fourny gfourny at inf.ethz.chThu May 26 04:01:56 PDT 2011
Hi Leo, The only XPath/XQuery standard I am aware of which provides namespace axes is XPath 1.0: http://www.w3.org/TR/xpath/#axes You can navigate to the corresponding nodes using path expressions. If I am correct, they were then deprecated in subsequent versions of XPath, and XQuery does not support them either. However, I can imagine that an implementation may provide its own functions for querying the namespace bindings. I hope this helps? Kind regards, Ghislain On May 26, 2011, at 12:42 PM, 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 > _______________________________________________ > 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! 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








