Hi,
any help on the following problem would be much appreciated. I have an XML file in the following format.
<?xml version="1.0" encoding="UTF-8" ?>
- <Cars>
- <Car ID="1821" Model="318" ES="18" Doors="3" Colour="207.0">
<Options Audio="01" Tyres="a5" Aircon="0" Leather="1" Auto="1" SR="0" />
<Safety Sa="1" Sb="1" Sc="0"/>
</Car>
- <Car ID="1675" Model="840i" ES="40" Doors="3" Colour="195.0">
<Options Audio="07" Tyres="r6" Aircon="1" Leather="1" Auto="0" SR="0" />
<Safety Sa="1" Sb="1" Sc="1"/>
</Car>
- <Car ID="1149" Model="760" ES="60" Doors="5" Colour="255.0">
<Options Audio="01" Tyres="c3" Aircon="1" Leather="1" Auto="1" SR="1" />
<Safety Sa="1" Sb="1" Sc="1"/>
</Car>
</Cars>
I would like to be able to query this file so that each of the attributes are modified with a suffix. The order is not of importance. An example of what i would like to obtain is this
CarID1=1821&CarID2=1675&CarID3=1149&Model1=318&Model2=840i etc...
I have managed to to this in VB but it is incredibly slow. I am trying to do this with Expat but have not been able to. Help would be much appreciated