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
-AsXMLString or -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.
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.