Skip to content

Fix parameter's position in Select-Xml.md #1953

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions reference/3.0/Microsoft.PowerShell.Utility/Select-Xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,27 @@ Finds text in an XML string or document.
## SYNTAX

### Xml (Default)
```
Select-Xml [-Xml] <XmlNode[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> [-Xml] <XmlNode[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### Path
```
Select-Xml [-Path] <String[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> [-Path] <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### LiteralPath
```
Select-Xml -LiteralPath <String[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> -LiteralPath <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### Content
```
Select-Xml -Content <String[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> -Content <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -214,7 +218,7 @@ Parameter Sets: Path
Aliases:

Required: True
Position: 2
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True
Expand All @@ -231,7 +235,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -249,7 +253,7 @@ Parameter Sets: Xml
Aliases: Node

Required: True
Position: 2
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Expand Down
26 changes: 15 additions & 11 deletions reference/4.0/Microsoft.PowerShell.Utility/Select-Xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,27 @@ Finds text in an XML string or document.
## SYNTAX

### Xml (Default)
```
Select-Xml [-Xml] <XmlNode[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> [-Xml] <XmlNode[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### Path
```
Select-Xml [-Path] <String[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> [-Path] <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### LiteralPath
```
Select-Xml -LiteralPath <String[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> -LiteralPath <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### Content
```
Select-Xml -Content <String[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> -Content <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -222,7 +226,7 @@ Parameter Sets: Path
Aliases:

Required: True
Position: 2
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True
Expand All @@ -239,7 +243,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -257,7 +261,7 @@ Parameter Sets: Xml
Aliases: Node

Required: True
Position: 2
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Expand Down
20 changes: 12 additions & 8 deletions reference/5.0/Microsoft.PowerShell.Utility/Select-Xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,27 @@ Finds text in an XML string or document.
## SYNTAX

### Xml (Default)
```
Select-Xml [-Xml] <XmlNode[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> [-Xml] <XmlNode[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### Path
```
Select-Xml [-Path] <String[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> [-Path] <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### LiteralPath
```
Select-Xml -LiteralPath <String[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> -LiteralPath <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### Content
```
Select-Xml -Content <String[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> -Content <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down
20 changes: 12 additions & 8 deletions reference/5.1/Microsoft.PowerShell.Utility/Select-Xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,27 @@ Finds text in an XML string or document.
## SYNTAX

### Xml (Default)
```
Select-Xml [-Xml] <XmlNode[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> [-Xml] <XmlNode[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### Path
```
Select-Xml [-Path] <String[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> [-Path] <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### LiteralPath
```
Select-Xml -LiteralPath <String[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> -LiteralPath <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### Content
```
Select-Xml -Content <String[]> [-XPath] <String> [-Namespace <Hashtable>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> -Content <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down
57 changes: 15 additions & 42 deletions reference/6/Microsoft.PowerShell.Utility/Select-Xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ Finds text in an XML string or document.
## SYNTAX

### Xml (Default)
```
Select-Xml [-Xml] <XmlNode[]> [-XPath] <String> [-Namespace <Hashtable>]
[-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> [-Xml] <XmlNode[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### Path
```
Select-Xml [-Path] <String[]> [-XPath] <String> [-Namespace <Hashtable>]
[-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> [-Path] <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### LiteralPath
```
Select-Xml -LiteralPath <String[]> [-XPath] <String> [-Namespace <Hashtable>]
[-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> -LiteralPath <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

### Content
```
Select-Xml -Content <String[]> [-XPath] <String> [-Namespace <Hashtable>]
[-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]
```powershell
Select-Xml [-XPath] <String> -Content <String[]> [-Namespace <Hashtable>]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -203,33 +203,6 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```

### -InformationAction
```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: infa
Accepted values: SilentlyContinue, Stop, Continue, Inquire, Ignore, Suspend

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

### -InformationVariable
```yaml
Type: String
Parameter Sets: (All)
Aliases: iv

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

### -Namespace
Specifies a hash table of the namespaces used in the XML.
Use the format @{\<namespaceName\> = \<namespaceValue\>}.
Expand Down Expand Up @@ -260,7 +233,7 @@ Parameter Sets: Path
Aliases:

Required: True
Position: 2
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Expand All @@ -277,7 +250,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -295,7 +268,7 @@ Parameter Sets: Xml
Aliases: Node

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