• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • FREE webinar: What does a post IR35 reform CV look like? : Wed, Jul 28, 2021 7:15 PM - 8:15 PM BST More details here.

Generate many XML files

  • Filter
  • Time
  • Show
Clear All
new posts


    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

    $array  = 1..100
    foreach ($element in $array){
    "<Tag1>Some XML</Tag1>`r`n<Tag2>More XML</Tag2>" |out-file "file_$element.xml"