HtmlNodeAttributeCount
Returns the attribute count of an HTML Node
- Free Function
- SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017
SELECT SQLHTTP.net.HtmlNodeAttributeCount ( @HtmlNode )
Name | Type | Description |
---|---|---|
@HtmlNode | nvarchar(MAX) | String containing an HTML element node |
int
1 2 3 4 5 6 |
DECLARE @HtmlNode varchar(MAX) SET @HtmlNode = '<img src="image.png" alt="Logo">' SELECT SQLHTTP.net.HtmlNodeAttributeCount(@HtmlNode) |
1 2 3 4 5 |
----- 2 |