Each file looks like this:
I can easily write an XSL file to convert the <tgiInfo> nodes to <tgis> nodes:
Is there an XSL way to harvest all the <tgiInfo> nodes from approximately a dozen XML files in my directory and store them in one XML file? I'm willing and able to create a "master" xml file with all the file names in it (as <fileLocation> nodes) if it will help.
Code:
<MaxisPackages xmlns="./MaxisPackages.xsd">
<fileInfo>
<fileLocation>C:\Program Files\EA GAMES\The Sims 2 Family Fun Stuff\TSData\Res\Objects\objects.package</fileLocation>
</fileInfo>
<fileInfo>
<fileLocation>C:\Program Files\EA GAMES\The Sims 2 Family Fun Stuff\TSData\Res\3D\CarryForward.sgfiles.package</fileLocation>
</fileInfo>
[red]...[/red]
<guidInfo objectGUID="D07B9CE9" />
<guidInfo objectGUID="10A49FB6" />
<guidInfo objectGUID="508CB1F6" />
<guidInfo objectGUID="50596292" />
<guidInfo objectGUID="CF7A514E" />
<guidInfo objectGUID="EF826029" />
[red]...[/red]
<tgiInfo>
<tgi_type>FC6EB1F7</tgi_type>
<tgi_group>1C0532FA</tgi_group>
<tgi_instance>FFD93AC1</tgi_instance>
<tgi_instance2>00000000</tgi_instance2>
</tgiInfo>
<tgiInfo>
<tgi_type>FC6EB1F7</tgi_type>
<tgi_group>7F45284D</tgi_group>
<tgi_instance>FFF14C45</tgi_instance>
<tgi_instance2>D6E9E5B3</tgi_instance2>
</tgiInfo>
<tgiInfo>
<tgi_type>FC6EB1F7</tgi_type>
<tgi_group>1C0532FA</tgi_group>
<tgi_instance>FF644CA9</tgi_instance>
<tgi_instance2>00000000</tgi_instance2>
</tgiInfo>
[red]...[/red]
</MaxisPackages>
I can easily write an XSL file to convert the <tgiInfo> nodes to <tgis> nodes:
Code:
<tgis tgi_type="FC6EB1F7" tgi_group="1C050000" tgi_instance2="B1BF1329" tgi_instance="FF121E17" />
Is there an XSL way to harvest all the <tgiInfo> nodes from approximately a dozen XML files in my directory and store them in one XML file? I'm willing and able to create a "master" xml file with all the file names in it (as <fileLocation> nodes) if it will help.