Converts named nodes of an element to properties of a PSObject, recursively.
ConvertFrom-XmlElement.ps1 [-Document] <XmlDocument> [-OnlyAttributes] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
ConvertFrom-XmlElement.ps1 [-Element] <XmlElement> [-OnlyAttributes] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
ConvertFrom-XmlElement.ps1 [-SelectXmlInfo] <SelectXmlInfo> [-OnlyAttributes]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Select-Xml /configuration/appSettings/add web.config |ConvertFrom-XmlElement.ps1
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: False
The 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: False
Output 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: False
Only 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: 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.