Param( [string]$in, [string]$out ) $xml = @' WSEE 8.0.0.0 <__VersionInfo> 1 1 no yes '@ $xml | out-file $out -encoding utf8 foreach($line in Get-Content $in) { $xml = " <__VersionInfo> 1 4 yes yes <__VersionInfo> 1 0 4 $line no yes yes no $line yes no " $xml | out-file $out -encoding utf8 -Append } $xml = @' '@ $xml | out-file $out -encoding utf8 -Append