-
-
Notifications
You must be signed in to change notification settings - Fork 7
Add XmlElement
apobekiaris edited this page Sep 4, 2020
·
4 revisions
Add an XmlElement to an XmlDocument.
Add-XmlElement [-Owner] <XmlDocument> [-ElementName] <String> [-Parent] <String>
[[-Attributes] <OrderedDictionary>] [[-InnerText] <String>] [<CommonParameters>]
Add-XmlElement [-Owner] <XmlDocument> [-ElementName] <String> [[-Attributes] <OrderedDictionary>]
[[-InnerText] <String>] [-ParentNode] <XmlElement> [<CommonParameters>]
Add an XmlElement to an XmlDocument.
PS C:\> Add-XmlElement $libNuspec "file" "files" ([ordered]@{
src = $id
target = "lib\$libTargetFramework\$id"
})
Adds a file element to a nuget nuspec file.
{{ Fill Attributes Description }}
Type: OrderedDictionary
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill ElementName Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill InnerText Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill Owner Description }}
Type: XmlDocument
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill Parent Description }}
Type: String
Parameter Sets: Parent
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill ParentNode Description }}
Type: XmlElement
Parameter Sets: ParentNode
Aliases:
Required: True
Position: 5
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.