Skip to content

Merge XmlSelections

github-actions edited this page Jun 3, 2026 · 1 revision

external help file: XMLLab-help.xml Module Name: XMLLab online version: https://github.com/brianary/Detextive/ schema: 2.0.0

Merge-XmlSelections

SYNOPSIS

Builds an object using the named XPath selections as properties.

SYNTAX

Xml

Merge-XmlSelections [-XPaths] <IDictionary> [-Xml] <XmlNode[]> [-Namespace <Hashtable>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

Path

Merge-XmlSelections [-XPaths] <IDictionary> [-Path] <String[]> [-Namespace <Hashtable>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

{{ Fill in the Description }}

EXAMPLES

EXAMPLE 1

Merge-XmlSelections @{Version='/*/@version';Format='/xsl:output/@method'} *.xsl* -Namespace @{xsl='http://www.w3.org/1999/XSL/Transform'}

Path Version Format


Z:\Scripts\dataref.xslt 2.0 html Z:\Scripts\xhtml2fo.xsl 1.0 xml

PARAMETERS

-XPaths

Any dictionary or hashtable of property name to XPath to select a value with.

Type: IDictionary
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Xml

The XML to select the property values from.

Type: XmlNode[]
Parameter Sets: Xml
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Path

XML file(s) to select the property values from.

Type: String[]
Parameter Sets: Path
Aliases: FullName

Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Namespace

XML namespaces to use in the XPath expressions.

Type: Hashtable
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: $PSDefaultParameterValues['Select-Xml:Namespace']
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.Xml.XmlNode of XML or System.String of XML file names to select property values from.

OUTPUTS

System.Management.Automation.PSCustomObject object with the selected properties.

NOTES

RELATED LINKS

https://github.com/brianary/Detextive/

Clone this wiki locally