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: