Extract data from xml file and build new xml file

Job ID: 33331983

Budget: $100 – $150 USD

We get for different tv channels every 24 hours the EPG data in XML form.

Example attached.
There are around 200 files (each for 1 channel).

Your job is to build a php (or other language that is running on an apache server) script that extracts the xml informations and build a new file.

Example of output attached.
Example of input file attached (note there are 200, must be combined to 1 output file)