Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
namespace-uri-from-QName (XQuery)
Collapse the table of content
Expand the table of content

namespace-uri-from-QName (XQuery)

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?


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 an overview of each of these columns, see xml Data Type Representation in the AdventureWorks Database.

A. Retrieve the namespace URI from a QName

For a working sample, see local-name-from-QName (XQuery).

Implementation Limitations

These are the limitations:

  • The namespace-uri-from-QName() function returns instances of xs:string instead of xs:anyURI.

Community Additions

© 2015 Microsoft