Page 1 of 1

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

Posted: Tue Jan 15, 2019 10:26 pm
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.

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

Posted: Wed Jan 16, 2019 5:05 pm
by RichardStemp
Try ProdName[1] and ProdName[2]

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

Richard