Get all pdf from a folder with name from a XML file?

Post Reply
automation
Member
Posts: 40
Joined: Tue Jan 15, 2019 10:19 pm

Get all pdf from a folder with name from a XML file?

Post by automation »

I have a folder with pdf like this
name_1.pdf
name_2.pdf
name_3.pdf
name_4.pdf
name_5.pdf

If I for an example have a XML with this tags

Code: Select all

<ProdID>1123</ProdID>
<ProdName>name_3<ProdName>
<ProdID>124</ProdID>
<ProdName>name_5<ProdName>
I want to pick up the ProdName from the XML (name_3 and name_5) and only get those files (name_3.pdf and name_5.pdf) from the pdf-folder to another folder with the XML-file.

We are using Switch 2018.
RichardStemp
Newbie
Posts: 17
Joined: Tue Jul 21, 2015 2:58 pm

Re: Get all pdf from a folder with name from a XML file?

Post by RichardStemp »

Try ProdName[1] and ProdName[2]

Had a similar issue referencing XML using XML Magic and this works for us.

Richard
Post Reply