ConvertFrom-CliXml
Imports a CliXml string with data that represents Microsoft .NET objects and creates the objects within PowerShell.

Syntax

ConvertFrom-CliXml [-InputObject] <String>

Detailed Description

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

Parameters

-InputObject <String>

String containing the Xml with serialized objects.
Aliases
Required?
true
Position?
1
Default Value
Accept Pipeline Input?
true (ByValue)
Accept Wildcard Characters?
false

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.
  • System.String

Outputs

The output type is the type of the objects that the cmdlet emits.
  • object

Notes

Help Author: Adam Najmanowicz, Michael West

Examples

EXAMPLE

1
PS master:\> #Convert original item to xml
2
PS master:\> $myCliXmlItem = Get-Item -Path master:\content\home | ConvertTo-CliXml
3
PS master:\> #print the CliXml
4
PS master:\> $myCliXmlItem
5
PS master:\> #print the Item converted back from CliXml
6
PS master:\> $myCliXmlItem | ConvertFrom-CliXml
Copied!

Related Topics

Last modified 2yr ago