Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.48 KB

functions-related-to-qnames-namespace-uri-from-qname.md

File metadata and controls

44 lines (34 loc) · 1.48 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords dev_langs
namespace-uri-from-QName (XQuery)
Learn how to use the namespace-uri-from-QName function to retrieve the namespace URI of a QName.
rothja
jroth
03/04/2017
sql
xml
language-reference
fn:namespace-uri-from-QName function
namespace-uri-from-QName function
XML

Functions Related to QNames - namespace-uri-from-QName

[!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.

Syntax

namespace-uri-from-QName($arg as xs:QName?) as xs:string?  

Arguments

$arg
Is the QName whose namespace URI is returned.

Examples

This topic provides XQuery examples against XML instances that are stored in various xml type columns 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.

See Also

Functions Related to QNames (XQuery)