Imports a CliXml string with data that represents Microsoft .NET objects and creates the objects within PowerShell.
ConvertFrom-CliXml [-InputObject] <String>
The ConvertFrom-CliXml command imports a CliXml string with data that represents Microsoft .NET Framework objects and creates the objects in PowerShell.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
String containing the Xml with serialized objects.
Aliases | |
Required? | true |
Position? | 1 |
Default Value | |
Accept Pipeline Input? | true (ByValue) |
Accept Wildcard Characters? | false |
The input type is the type of the objects that you can pipe to the cmdlet.
System.String
The output type is the type of the objects that the cmdlet emits.
object
Help Author: Adam Najmanowicz, Michael West
PS master:\> #Convert original item to xmlPS master:\> $myCliXmlItem = Get-Item -Path master:\content\home | ConvertTo-CliXmlPS master:\> #print the CliXmlPS master:\> $myCliXmlItemPS master:\> #print the Item converted back from CliXmlPS master:\> $myCliXmlItem | ConvertFrom-CliXml
ConvertTo-Xml
ConvertFrom-Xml
Export-CliXml
Import-CliXml