Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Adding child nodes to existing nodes in XML using Powershell

$
0
0

I have the following XML structure:

<ovf:Envelope>
  <References>
  </References>
  <DiskSection>
  </DiskSection>
  <NetworkSection>
  </NetworkSection>
<vmw:IpAssignmentSection>
    <Info>Supported IP assignment schemes</Info>
</vmw:IpAssignmentSection>
</ovf:Envelope>  

I want to add another node <Info> as a child node to <DiskSection> with Text as "Disk Section".

Can someone please help me with the correct code sequence in powershell to achieve that? Urgent!


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>