Re: Simpler XQuery Syntax?
- From: Martin Honnen <mahotrash@xxxxxxxx>
- Date: Wed, 08 Jul 2009 12:51:39 +0200
Bill D. wrote:
Yes, it all works. It just seems redundant to have to restate the identical 'for' statement, once for each namespace/schema. I thought there might be a more concise way to phrase this SELECT statement that would accomplish the same thing.
for $x in /CurrentConfiguration/Install/V
Well with XQuery you can use *:foo to select 'foo' elements in any namespace so you could do
for $x in /*:CurrentConfiguration/*:Install/*:V
to have a query that works against any possible namespace (even no namespace).
--
Martin Honnen --- MVP XML
http://msmvps.com/blogs/martin_honnen/
.
- References:
- Simpler XQuery Syntax?
- From: Bill D.
- Re: Simpler XQuery Syntax?
- From: Martin Honnen
- Re: Simpler XQuery Syntax?
- From: Bill D.
- Simpler XQuery Syntax?
- Prev by Date: RE: Simpler XQuery Syntax?
- Next by Date: Re: looooooooong record
- Previous by thread: Re: Simpler XQuery Syntax?
- Next by thread: RE: Simpler XQuery Syntax?
- Index(es):