I have an xml like this:
<?xml version="1.0" encoding="utf-16"?>
<Node1 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Item Name="1" Value="value1" />
<Item Name="2" Value="value2" />
</Node2>
I need to get both the name and value of the "Item"s inside the "Node1" node. I am trying the following and it doesn't seem to be working ($xml contains the above string):
Write-Host $xml.ChildNodes.Node1.ToString()
Any ideas on how I can do this? Thanks.

<Node1>...</Node2>. Change the</Node2>to</Node1>.