I am struggling and wondered if someone could help me...
I have many folders and each one will have a large xml file in it. I would to recurse through my folders and find my xml file. Once I have this xml I would like to pull some values from the xml and create a folder on a web server with a version subfolder and then copy a jpg file to it from the parent folder. So far I can get a single xml and return all the values of a field but cannot get it to create the folders based on the value. Would be nice if the script ignores if the folder exists. My xml would look something like this...
DATA
ASSET
- PART
- Version "1"
- partnumber "ABC123"
- CAR
- make "FORD"
- colour "BLACK.JPG"
- CAR
- make "FERRARI"
- colour "RED.JPG"
- PART
so the result should be folder structure like this
ABC123\
1\
FORD\
black.jpg
FERRARI\
red.jpg
Apologies for the poor quality of the data in the post, first time posting and I couldn't get it to work