Hi: I got a small project to combine many XML files into one and convert the combined XML file in Excel using AppleScript. My XML files look like this:
and like this...
I get many XML files like this. And I want them to be combined and shown like this:
And finally the combined XML file converts in Excel sheet with column headings "Job ID", "From", "Job Name" and so on...
Thanks
Code:
<?xml version="1.0" encoding="UTF-8"?>
<Metadataobject>
<from>horsten.jock@edienpartner-int.com</from>
<jobname>B3_IM09MBDUF</jobname>
<pages>2</pages>
<priority>3</priority>
<timezone>CEST</timezone>
<year>2013</year>
<month>7</month>
<day>15</day>
<hour>11</hour>
</Metadataobject>
and like this...
Code:
<?xml version="1.0" encoding="UTF-8"?>
<Metadataobject>
<from>frank.k@mrtner-int.com</from>
<jobname>P1_FR1330G006007_Kate_van der Vaart</jobname>
<pages>2</pages>
<priority>1</priority>
<timezone>CEST</timezone>
<year>2013</year>
<month>7</month>
<day>12</day>
<hour>16</hour>
</Metadataobject>
I get many XML files like this. And I want them to be combined and shown like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<Metadataobject>
<job id="1">
<from>thck@rtner-int.com</from>
<jobname>B3_IM09MBDUF</jobname>
<pages>2</pages>
<priority>3</priority>
<timezone>CEST</timezone>
<year>2013</year>
<month>7</month>
<day>15</day>
<hour>11</hour>
</job>
<job id="1">
<from>flk@mrtner-int.com</from>
<jobname>P1_FR1330G006007_Kate_van der Vaart</jobname>
<pages>2</pages>
<priority>1</priority>
<timezone>CEST</timezone>
<year>2013</year>
<month>7</month>
<day>12</day>
<hour>16</hour>
</job>
</Metadataobject>
And finally the combined XML file converts in Excel sheet with column headings "Job ID", "From", "Job Name" and so on...
Thanks
Last edited: