Using PHP to alter XML File

marshelino

New Member
I have the following XML file:\[code\]<graph caption="Share Data Wave" subcaption="For Person's Name" xAxisName="Time" yAxisMinValue="http://stackoverflow.com/questions/3582591/-0.025" yAxisName="Voltage" decimalPrecision="5" formatNumberScale="0" numberPrefix="" showNames="1" showValues="0" showAlternateHGridColor="1" AlternateHGridColor="ff5904" divLineColor="ff5904" divLineAlpha="20" alternateHGridAlpha="5"> <set name="2010-08-27 12:00:20.636" value="http://stackoverflow.com/questions/3582591/25.020000" hoverText = "The difference from last value: 0" ></set> <set name="2010-08-27 12:01:19.473" value="http://stackoverflow.com/questions/3582591/15.000000" hoverText = "The difference from last value: -10.02" ></set> <set name="2010-08-27 12:01:24.494" value="http://stackoverflow.com/questions/3582591/15.020000" hoverText = "The difference from last value: 0.0199999999999996" ></set> <set name="2010-08-27 12:01:44.188" value="http://stackoverflow.com/questions/3582591/18.250000" hoverText = "The difference from last value: 3.23" ></set> <set name="2010-08-27 12:02:11.851" value="http://stackoverflow.com/questions/3582591/18.540000" hoverText = "The difference from last value: 0.289999999999999" ></set> <set name="2010-08-27 12:02:47.109" value="http://stackoverflow.com/questions/3582591/16.520000" hoverText = "The difference from last value: -2.02" ></set> <set name="2010-08-27 12:03:01.199" value="http://stackoverflow.com/questions/3582591/17.500000" hoverText = "The difference from last value: 0.98" ></set> <set name="2010-08-27 12:03:03.030" value="http://stackoverflow.com/questions/3582591/25.020000" hoverText = "The difference from last value: 7.52" ></set> <set name="2010-08-27 12:03:40.570" value="http://stackoverflow.com/questions/3582591/30.000000" hoverText = "The difference from last value: 4.98" ></set> <set name="2010-08-27 12:04:27.490" value="http://stackoverflow.com/questions/3582591/32.250000" hoverText = "The difference from last value: 2.25" ></set> <set name="2010-08-27 12:05:03.738" value="http://stackoverflow.com/questions/3582591/26.050000" hoverText = "The difference from last value: -6.2" ></set> <set name="2010-08-27 12:05:14.511" value="http://stackoverflow.com/questions/3582591/18.540000" hoverText = "The difference from last value: -7.51" ></set> <set name="2010-08-27 12:06:09.728" value="http://stackoverflow.com/questions/3582591/16.520000" hoverText = "The difference from last value: -2.02" ></set> <set name="2010-08-27 12:06:58.329" value="http://stackoverflow.com/questions/3582591/17.500000" hoverText = "The difference from last value: 0.98" ></set></graph>\[/code\]Is there a way in PHP to alter this file to display just some of the data points say between 2010-08-27 12:02:11.851 (start time) to 2010-08-27 12:05:03.738 (end time) and to give the user a drop down menu of the start time and a drop down menu of the finish time while maintaining the top tag and the bottom tag?Any suggestions? Regards,Anthony
 
Back
Top