Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML and ASP

Status
Not open for further replies.

pnad

Technical User
May 2, 2006
133
US
Hello all,

I have an ASP page that needs to display a line chart generated on the fly. The data for the line chart is stored in an access DB. I want to write the data to an XML file and feed the chart from the file.

Part of the XML file needs to be the same. To be more specific - this is my XML file below:
<chart>
<chart_type>line</chart_type>

<axis_category size='10' />
<axis_value size = '10' />
<chart_data>
<row>
<null/>
<string>0%</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>10%</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>20%</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>30%</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>40%</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>50%</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>60%</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>70%</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>80%</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>90%</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>&nbsp;</string>
<string>100%</string>
</row>

<row>
<string>Chart</string>

<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>0</number>
<number>379705000</number>
<number>979155000</number>
<number>2415574000</number>
<number>2787201000</number>
<number>3533686000</number>
<number>4726123000</number>

</row>
</chart_data>


</chart>

I want only the part where it says <number>value</number> to change based on data from the DB.

Any help will be appreciated.

Thanks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top