xquery-functions-related-to-qnames-namespace-uri-from-qname
xquery #xquery#functions-related-to-qnames-namespace-uri-from-qname
Syntax
namespace-uri-from-QName($arg as xs:QName?) as xs:string?
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.
$arg
Is the QName whose namespace URI is returned.
This topic provides XQuery examples against XML instances that are stored in various
type
columns in the AdventureWorks database.
For a working sample, see
local-name-from-QName (XQuery).
These are the limitations:
The
function returns instances of xs:string instead of
xs:anyURI.
Functions Related to QNames (XQuery)
namespace-uri-from-QName($arg as xs:QName?) as xs:string?