here is a simple little powershell script to do something close to what you want.
save it as .ps1 file and execute it or just paste the lot into a powershell console window.
it will write the files to your current directory so make sure you have permission and also make sure you have set your execution policy.
its easily changeable to add all the xml into you want
Code:
$array = 1..100 foreach ($element in $array){ "<Tag1>Some XML</Tag1>`r`n<Tag2>More XML</Tag2>" |out-file "file_$element.xml" }
Leave a comment: