-
Notifications
You must be signed in to change notification settings - Fork 0
ConvertFrom XmlElement
github-actions edited this page Jun 3, 2026
·
1 revision
Converts named nodes of an element to properties of a PSObject, recursively.
ConvertFrom-XmlElement [-Document] <XmlDocument> [-OnlyAttributes] [-SimpleSuccession]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
ConvertFrom-XmlElement [-Element] <XmlElement> [-OnlyAttributes] [-SimpleSuccession]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
ConvertFrom-XmlElement [-SelectXmlInfo] <SelectXmlInfo> [-OnlyAttributes] [-SimpleSuccession]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
{{ Fill in the Description }}
Select-Xml /configuration/appSettings/add web.config |ConvertFrom-XmlElement
key value
webPages:Enabled false
The XML document to convert to a PSObject.
Type: XmlDocument
Parameter Sets: Document
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseThe XML element to convert to a PSObject.
Type: XmlElement
Parameter Sets: Element
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseOutput from the Select-Xml cmdlet.
Type: SelectXmlInfo
Parameter Sets: SelectXmlInfo
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseOnly include attributes, ignore other child nodes.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: Attributes, Atts
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseReplace any simple element that only contains one other element with its child.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: CollapseSimple
Required: False
Position: Named
Default value: False
Accept pipeline input: False
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.