Hi All I am trying to parse a series of xml files and pull out the {$_.LayoutElement.name} and {$_.LayoutElement.hyperlinkTemplate.urlTemplate}
however the code below only prints out the last entered xml leaf IE {$_.LayoutElement.hyperlinkTemplate.urlTemplate}
if I delete {$_.LayoutElement.hyperlinkTemplate.urlTemplate} then {$_.LayoutElement.name} prints out
Ideally I would be able output a CSV of this data any suggestions?
[xml]$dashboard = Get-Content C:\Users\sas005\Documents\Dashboards\Arts_And_Science-ASDA-9500.dcx$dashboard.DashboardConfig.RootLayoutElement.LayoutElement.Children | % {$_.LayoutElement.name} {$_.LayoutElement.hyperlinkTemplate.urlTemplate}