Skip to content

Instantly share code, notes, and snippets.

@tiagoduarte
tiagoduarte / Parse-XmlFile.ps1
Last active June 24, 2021 08:30
PowerShell snippet to parse an XML file, and retrieve elements, attributes and inner values
param(
#provide the path for the input xml document
$xmlPath = "C:\temp\tiles-list-elements.xml",
#embed xml (for demo purposes)
$xmlContent = '
<Data>
<Rows>
<Row>