Skip to content

Commit 6712f85

Browse files
matt9ucciSean Wheeler
authored andcommitted
Fix parameter's position in ConvertTo-Xml.md (#1929)
1 parent 6976ff4 commit 6712f85

File tree

5 files changed

+18
-57
lines changed

5 files changed

+18
-57
lines changed

reference/3.0/Microsoft.PowerShell.Utility/ConvertTo-Xml.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ title: ConvertTo-Xml
1313
Creates an XML-based representation of an object.
1414
## SYNTAX
1515

16-
```
17-
ConvertTo-Xml [-Depth <Int32>] [-InputObject] <PSObject> [-NoTypeInformation] [-As <String>]
18-
[<CommonParameters>]
16+
```powershell
17+
ConvertTo-Xml [-InputObject] <PSObject> [-Depth <Int32>] [-NoTypeInformation]
18+
[-As <String>] [<CommonParameters>]
1919
```
2020

2121
## DESCRIPTION
@@ -97,7 +97,7 @@ Parameter Sets: (All)
9797
Aliases:
9898

9999
Required: True
100-
Position: 1
100+
Position: 0
101101
Default value: None
102102
Accept pipeline input: True (ByValue)
103103
Accept wildcard characters: True

reference/4.0/Microsoft.PowerShell.Utility/ConvertTo-Xml.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Creates an XML-based representation of an object.
1515

1616
## SYNTAX
1717

18-
```
19-
ConvertTo-Xml [-Depth <Int32>] [-InputObject] <PSObject> [-NoTypeInformation] [-As <String>]
20-
[<CommonParameters>]
18+
```powershell
19+
ConvertTo-Xml [-InputObject] <PSObject> [-Depth <Int32>] [-NoTypeInformation]
20+
[-As <String>] [<CommonParameters>]
2121
```
2222

2323
## DESCRIPTION
@@ -102,7 +102,7 @@ Parameter Sets: (All)
102102
Aliases:
103103

104104
Required: True
105-
Position: 1
105+
Position: 0
106106
Default value: None
107107
Accept pipeline input: True (ByValue)
108108
Accept wildcard characters: True

reference/5.0/Microsoft.PowerShell.Utility/ConvertTo-Xml.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Creates an XML-based representation of an object.
1515

1616
## SYNTAX
1717

18-
```
19-
ConvertTo-Xml [-Depth <Int32>] [-InputObject] <PSObject> [-NoTypeInformation] [-As <String>]
20-
[<CommonParameters>]
18+
```powershell
19+
ConvertTo-Xml [-InputObject] <PSObject> [-Depth <Int32>] [-NoTypeInformation]
20+
[-As <String>] [<CommonParameters>]
2121
```
2222

2323
## DESCRIPTION

reference/5.1/Microsoft.PowerShell.Utility/ConvertTo-Xml.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Creates an XML-based representation of an object.
1515

1616
## SYNTAX
1717

18-
```
19-
ConvertTo-Xml [-Depth <Int32>] [-InputObject] <PSObject> [-NoTypeInformation] [-As <String>]
20-
[<CommonParameters>]
18+
```powershell
19+
ConvertTo-Xml [-InputObject] <PSObject> [-Depth <Int32>] [-NoTypeInformation]
20+
[-As <String>] [<CommonParameters>]
2121
```
2222

2323
## DESCRIPTION

reference/6/Microsoft.PowerShell.Utility/ConvertTo-Xml.md

Lines changed: 4 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Creates an XML-based representation of an object.
1515

1616
## SYNTAX
1717

18-
```
19-
ConvertTo-Xml [-Depth <Int32>] [-InputObject] <PSObject> [-NoTypeInformation] [-As <String>]
20-
[-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]
18+
```powershell
19+
ConvertTo-Xml [-InputObject] <PSObject> [-Depth <Int32>] [-NoTypeInformation]
20+
[-As <String>] [<CommonParameters>]
2121
```
2222

2323
## DESCRIPTION
@@ -95,45 +95,6 @@ Accept pipeline input: False
9595
Accept wildcard characters: False
9696
```
9797
98-
### -InformationAction
99-
-- String: Returns a single string.
100-
101-
-- Stream: Returns an array of strings.
102-
103-
-- Document: Returns an XmlDocument object.
104-
105-
The default is Document.```yaml
106-
Type: ActionPreference
107-
Parameter Sets: (All)
108-
Aliases: infa
109-
Accepted values: SilentlyContinue, Stop, Continue, Inquire, Ignore, Suspend
110-
111-
Required: False
112-
Position: Named
113-
Default value: None
114-
Accept pipeline input: False
115-
Accept wildcard characters: False
116-
```
117-
118-
### -InformationVariable
119-
-- String: Returns a single string.
120-
121-
-- Stream: Returns an array of strings.
122-
123-
-- Document: Returns an XmlDocument object.
124-
125-
The default is Document.```yaml
126-
Type: String
127-
Parameter Sets: (All)
128-
Aliases: iv
129-
130-
Required: False
131-
Position: Named
132-
Default value: None
133-
Accept pipeline input: False
134-
Accept wildcard characters: False
135-
```
136-
13798
### -InputObject
13899
Specifies the object to be converted.
139100
Enter a variable that contains the objects, or type a command or expression that gets the objects.
@@ -145,7 +106,7 @@ Parameter Sets: (All)
145106
Aliases:
146107

147108
Required: True
148-
Position: 1
109+
Position: 0
149110
Default value: None
150111
Accept pipeline input: True (ByValue)
151112
Accept wildcard characters: False

0 commit comments

Comments
 (0)