powershell on xml to replace value between the tags



I have an xml c d e cf


Need to add":" to the value between drive tags using powershell if there only one character.


Example of the result xml:



<root>
<drive>c:<drive>
<drive>d:<drive>
<drive>e:<drive>
<drive>cf<drive>
<root>

No comments:

Post a Comment