I receive two xml files each week,
1. One has the code for the dealer including the named of the dealership.
2. The second shows only code number for dealership; but has all of the data for each vehicle that is being submitted for that dealership (and all the rest of the dealership)
2a. Plus an http url where the photo for the vehicle is and that needs to be downloaded to server (includes name of image)(image name is the “vin” from the same vehicle).
I need a script that will compare the [url removed, login to view] (code number for dealership; with nameof the dealership) to the vehicle.xml. Save in a text file the highlighted fields and insert the name of the dealership. Each dealership would have a separate file with one vehicle info saved and using the “vin” number as the name of the file.
Plus I need the script to go to the url where the photo is and download the photo and same it with its name “vin” number is used for photo name already.
From [url removed, login to view]
<cname>NORTH PARK LINCOLN/MERCURY</cname>
From [url removed, login to view]:
Also found in [url removed, login to view]:
<PhotoURL>[url removed, login to view],[url removed, login to view]
What I want to end up with:
1. I will have a folder for each dealer: north park Lincoln mercury
2. In the folder will be:
a. Text file for each vehicle: sample
A1. named: 1B3JZ65Z95V500061
Air Conditioning|Power Adjustable Pedals|Power
Door Locks|Power Windows|Clock|Tachometer|Tilt
Steering Wheel|Rear Defroster|Console|Front Bucket
Seats|AM/FM Radio|Power Mirrors|Convertible Top|CD
Changer|Leather Upholstery|Dual Air Bags|Allow
Wheels|Anti-Lock Braking System (ABS)
3. all photos of the vehicles for that dealership named as the “vin” number.
If there are more than one photo for a vehicle, additional vehicle photo will be disregarded not captured.
This will all be done on server.