so my main goal is to be able to create multiple variations of an XML element (using powershell if possible). For example, the xml structure below:
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
Question 1: Is there a way to save that entire structure in one variable?
Question 2: How would I "save" that structure and create multiple copies of that structure with only one modification such as changing the Jani to cody and John? I want to be able to make modified copies of that structure at will but don't know where to start.
Any help appreciated. Thank you!