-
Notifications
You must be signed in to change notification settings - Fork 0
Resolve XPath
github-actions edited this page Jun 3, 2026
·
1 revision
external help file: XMLLab-help.xml Module Name: XMLLab online version: https://docs.microsoft.com/dotnet/api/system.xml.xmlnode schema: 2.0.0
Returns the XPath of the location of an XML node.
Resolve-XPath [-XmlNode] <XmlNode> [-ProgressAction <ActionPreference>] [<CommonParameters>]
{{ Fill in the Description }}
<b c="value"/></a>' |Select-Xml //@c |Resolve-XPath
/a/b/@c
one<!-- two -->three</a>' |Select-Xml '//text()' |Resolve-XPath
/a/text()[1] /a/text()[2]
An XML node to retrieve the XPath for.
Type: XmlNode
Parameter Sets: (All)
Aliases: Node
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.