Skip to content

Instantly share code, notes, and snippets.

@phatmandrake
Last active May 29, 2020 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phatmandrake/b688aaee6f4a8cae206337ac0a29fcfc to your computer and use it in GitHub Desktop.
Save phatmandrake/b688aaee6f4a8cae206337ac0a29fcfc to your computer and use it in GitHub Desktop.
$XMLSuccess = $([XML]'
<response method="update">
<result>
<success />
</result>
</response>
').response.result
$XMLResponse = $([XML]'
<response method="getInfo">
<result>
<settings
Props1="3"
Props2="0"
Props3="1"
Props4=""
Props5="1" />
</result>
</response>').response.result.settings
$Results = $XMLSuccess,$XMLResponse
$Results.foreach{
$_ | Out-Default
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment