Get-KFPrettyXML

Syntax

Get-KFPrettyXML
  [-xml] <string>
  [-ThrowErrors[:$true]]

Support

>= kenaflow 1.0.0

Return

String.

Description

With this cmdlet, poorly readable XML can be transformed into a hierarchical, readable form.

Parameters

[-xml] <string>

The XML string to be formatted.

[-ThrowErrors[:$true]]

This is a default parameter for all kenaflow cmdlets. If set to $true (default!) the engine will pass exception within the cmdlet to the script for further handling.

Example

Cls; Import-Module "C:\Program Files\kenaflow\kenaflow.runtime.dll"

Start-KFSharePointModule -SharePointVersion sp2013

$xml = Get-KFNormalizedCaml "<Where><Or><Eq>...</Eq><Gt>..</Gt></Or></Where>"

Get-KFPrettyXML $xml

The String <Where><Or><Eq>...</Eq><Gt>..</Gt></Or></Where> is reformatted and returned.