Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 19th, 2004, 12:20 PM   #1
maverick147
Newbie
 
Join Date: Oct 2004
Posts: 1
Rep Power: 0 maverick147 is on a distinguished road
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
maverick147 is offline   Reply With Quote
Old Oct 19th, 2004, 1:34 PM   #2
goldenb0y
Newbie
 
Join Date: Oct 2004
Posts: 15
Rep Power: 0 goldenb0y is on a distinguished road
Check out:
http://search.cpan.org/~mikewong/XML...0.71/Dumper.pm
goldenb0y is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:15 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC