IsXmlValid

Checks the validity of an XML

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

Syntax:

SELECT SQLHTTP.net.IsXmlValid( @XMLString )

Arguments:

Name Type Description
@XMLString nvarchar(MAX) String to validate.

Return Type:

bit

Return Values:

0 = XML is NOT Valid
1 = XML IS Valid

Sample Usage:

See Also: