XmlEncode

Encodes a string to a percent encoded URL string.

  • Free Function
  • SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017

Syntax:

SELECT SQLHTTP.net.XmlEncode ( @String )

Arguments:

Name Type Description
@String nvarchar(MAX) Any character string, variable, or expression.

Return Type:

nvarchar(max)

Remarks:

See the following Wikipedia article on Valid characters in XML

Sample Usage:

See Also: