Skip to content

Instantly share code, notes, and snippets.

@phatmandrake

phatmandrake/XML Output Fixed Secret

Last active May 29, 2020
Embed
What would you like to do?
$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
You can’t perform that action at this time.