none
Powershell CSV to XML RRS feed

  • Question

  • Hi,

    I was wondering if anyone could point me in the direction of a script that would get the contents of a CSV and write/output it to XML.

    Using Citrix WEM, I plan to deploy printers to my sessions by referencing an XML file which has the following structure:

    <Parent>
      <Child>
         <Name>Hostname1</Name>
      </Child>
      <Child>
         <Name>Hostname2</Name>
      </Child>
    </Parent>

    I have a CSV with a single column containing all the required 'Hostnames', however, I'm unsure on where to find an applicable script that would loop through each line in the CSV and output the data into XML as above.

    Any help would be greatly appreciated.

    Regards

    • Moved by Bill_Stewart Wednesday, September 5, 2018 10:06 PM This is not "search for me and hand-feed me an answer" forum
    Thursday, July 5, 2018 4:34 AM

All replies