-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Export-FormatData XML output #6699
Copy link
Copy link
Closed
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifWG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility module
Metadata
Metadata
Assignees
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifWG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility module
In #6691 we made that Export-FormatData returns pretty-printing XML output by default as requested in #6681.
Users may need a different output:
-AsXML- output [xml] object-AsXMLStringor-AsString- output compact XML string without formatting.-Encoding- set encoding of output file .And perhaps add option to output to pipe not file and
-PassThru.