I have two XML files (File1.xml, File2.xml). File2.xml is a subset of File1.xml.
File1.xml has nodes like so:
<parentnode>
<item id="GUID1">
<Text>Some Text</Text>
</item>
<item id="GUID2">
<Text>Here’s some more text</Text>
</item>
</parentnode>
File2.xml has:
<parentnode>
<item id="GUID1">
<Text>Some Replacement Text</Text>
</item>
</parentnode>
I want to take the item with GUIDx in File1.xml, and replace it with the item with GUIDx from File2.xml. Essentially, I want to take the replacement text in File2.xml and insert it into the corresponding item node in File1.xml
How do I do this in PowerShell?