ConvertFrom-HtmlMicrodata
August 3, 2026 ยท View on GitHub
SYNOPSIS
Extracts microdata items from HTML content or a URL.
SYNTAX
Node (Default)
ConvertFrom-HtmlMicrodata [-HtmlNode] <HtmlNode> [-Proxy <string>] [-ProxyCredential <pscredential>] [<CommonParameters>]
Content
ConvertFrom-HtmlMicrodata -Content <string> [-Proxy <string>] [-ProxyCredential <pscredential>] [<CommonParameters>]
Url
ConvertFrom-HtmlMicrodata -Url <uri> [-Proxy <string>] [-ProxyCredential <pscredential>] [<CommonParameters>]
DESCRIPTION
Extracts microdata items from HTML content or a URL.
EXAMPLES
EXAMPLE 1
ConvertFrom-HtmlMicrodata -Content $html
EXAMPLE 2
ConvertFrom-Html -Content $html | Select-HtmlNode -XPath '//*[@itemscope]' | ConvertFrom-HtmlMicrodata
PARAMETERS
-Content
HTML markup containing microdata.
Type: String
Parameter Sets: Content
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: True (ByValue, ByPropertyName)
Accept wildcard characters: False
-HtmlNode
HtmlAgilityPack node to inspect.
Type: HtmlNode
Parameter Sets: Node
Aliases: Node, InputObject
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-Proxy
Proxy server address when downloading by URL.
Type: String
Parameter Sets: Node, Content, Url
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProxyCredential
Credentials for the proxy server.
Type: PSCredential
Parameter Sets: Node, Content, Url
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Url
URL of a page with microdata.
Type: Uri
Parameter Sets: Url
Aliases: Uri
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
System.StringHtmlAgilityPack.HtmlNode
OUTPUTS
System.Management.Automation.PSObject
RELATED LINKS
- None