factory graphs....
Posted: Wed Nov 19, 2008 4:45 am
im having a problem. i am trying to make a chart from a game data XML file (wiretap) but i cannot figure out how to make the data integrate into the fusioncharts format.
the game XML format looks like this
but the fusioncharts format has to be this
also the file would need to update it self every 5mins or so.
there has to be a program or code out there that can go out, take certain data from an xml file and plug it into a certain format, right?
any suggestions?
the game XML format looks like this
Code: Select all
< ?xml version='1.0' encoding='ISO-8859-1'?>
< factorystats version='1.1' copyright='(C) Playnet Inc 2007, All rights reserved.'>
< generated date='2008-11-17 08:26:36' timestamp='1226931996'/>
< description>Campaign factory production stats
< factory id="70" from="1225582940" to="1226932940" ticks="1501" produced="1501"/>
< /factorystats>
but the fusioncharts format has to be this
Code: Select all
< graph caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' showNames='1' decimalPrecision='0' formatNumberScale='0'>
< set name='Jan' value='462' color='AFD8F8' />
< /graph>
there has to be a program or code out there that can go out, take certain data from an xml file and plug it into a certain format, right?
any suggestions?