Returns the XPath of the location of an XML node.
Resolve-XPath.ps1 [-XmlNode] <XmlNode> [-ProgressAction <ActionPreference>] [<CommonParameters>]
<b c="value"/></a>' |Select-Xml //@c |Resolve-Xml.ps1
/a/b/@c
one<!-- two -->three</a>' |Select-Xml '//text()' |Resolve-XPath.ps1
/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
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.