| title | namespace-uri-from-QName (XQuery) | ||
|---|---|---|---|
| description | Learn how to use the namespace-uri-from-QName function to retrieve the namespace URI of a QName. | ||
| author | rothja | ||
| ms.author | jroth | ||
| ms.date | 03/04/2017 | ||
| ms.service | sql | ||
| ms.subservice | xml | ||
| ms.topic | reference | ||
| helpviewer_keywords |
|
||
| dev_langs |
|
[!INCLUDE SQL Server Azure SQL Database]
Returns a string representing the namespace uri of the QName specified by $arg. The result is the empty sequence if $arg is the empty sequence.
namespace-uri-from-QName($arg as xs:QName?) as xs:string?
$arg
Is the QName whose namespace URI is returned.
This topic provides XQuery examples against XML instances that are stored in various xml type columns in the AdventureWorks database.
For a working sample, see local-name-from-QName (XQuery).
These are the limitations:
- The namespace-uri-from-QName() function returns instances of xs:string instead of xs:anyURI.