-
Notifications
You must be signed in to change notification settings - Fork 0
Get XmlValue
github-actions edited this page Jul 25, 2026
·
1 revision
external help file: SelectXmlExtensions.dll-Help.xml Module Name: SelectXmlExtensions online version: schema: 2.0.0
Returns the value of an XML node found by Select-Xml.
Get-XmlValue -SelectXmlInfo <SelectXmlInfo> [-ProgressAction <ActionPreference>] [<CommonParameters>]
This cmdlet returns the text value of a node found by Select-Xml.
If selecting from a file, the file will be updated instead of returning the updated XML document.
PS C:\> '<a>B</a>' |Select-Xml /a |Get-XmlValue
B
PS C:\> '<a href="https://example.org/">link</a>' |Select-Xml /a/@href |Get-XmlValue
https://example.org/
The output from Select-Xml.
Type: SelectXmlInfo
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (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.
The output of Select-Xml.
The text value of the selected node.