Prerequisites
Summary
We need to document ConvertTo-CliXml and ConvertFrom-CliXml cmdlets. These cmdlets were requested so we can serialize/deserialize CliXML from memory without needing to read/write from file system,
Details
Parameter Sets
ConvertTo-CliXml [-InputObject] <psobject> [-Depth <int>] [<CommonParameters>]
ConvertFrom-CliXml [-InputObject] <string> [<CommonParameters>]
Example 1
Serialize to CLI XML string and deserialize to CLI XML object in memory,
> $cliXmlString = [pscustomobject]@{'hello' = 1} | ConvertTo-CliXML
> $cliXmlString
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
<Obj RefId="0">
<TN RefId="0">
<T>System.Management.Automation.PSCustomObject</T>
<T>System.Object</T>
</TN>
<MS>
<I32 N="hello">1</I32>
</MS>
</Obj>
</Objs>
> $cliXmlString | ConvertFrom-CliXml
hello
-----
1
Articles
- reference/7.4/Microsoft.PowerShell.Utility/ConvertTo-CliXml.md
- reference/7.4/Microsoft.PowerShell.Utility/ConvertFrom-CliXml.md
Related Source Pull Requests
Related Source Issues
Prerequisites
Get-Foocmdlet" instead of "New cmdlet."Summary
We need to document
ConvertTo-CliXmlandConvertFrom-CliXmlcmdlets. These cmdlets were requested so we can serialize/deserialize CliXML from memory without needing to read/write from file system,Details
Parameter Sets
Example 1
Serialize to CLI XML string and deserialize to CLI XML object in memory,
Articles
Related Source Pull Requests
ConvertTo-CliXmlandConvertFrom-CliXmlcmdlets PowerShell/PowerShell#21063Related Source Issues