HtmlNodeCount

Returns the highest available Index that can be used using the HTMLNode function.

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

Syntax:

SELECT SQLHTTP.net.HtmlNodeCount ( @Html, @Xpath )

Arguments:

Name Type Description
@Html nvarchar(MAX) String containing HTML
@Xpath nvarchar(MAX) An Xpath query

Return Type:

int

Sample Usage:

See Also: