Jump to content

How to sperate the chart properties from data


jle

Recommended Posts

Hi all,I have the following xml is defined as below. Is there any way that we can seperate out the chart properities to seperate file and then include it in the xml file.Please help.Thanks,JL<chart> <axis_category font='Verdana' bold='false' size='11' color='555555' alpha='100' /> <axis_ticks major_thickness='1' major_color='000000' minor_thickness='2' minor_color='0000ff' minor_count='int' /> <axis_value min='0' max='25' steps='5' font='Verdana' bold='false' size='11' color='555555' alpha='100' /> <chart_border bottom_thickness='1' color='808080' /> <chart_data> <row> <null/> <string></string> <string></string> <string>7:00/</string> .................</chart_data> <chart_grid_h thickness='1' alpha='100' color='CCCCCC' type='solid' /> <chart_pref point_shape='none' line_thickness='3' /> <chart_rect x='60' y='5' width='450' height='160' positive_color='000000' negative_color='DCDCDC' positive_alpha='10' negative_alpha='100' /> <chart_type>line</chart_type>

Link to comment
Share on other sites

Depends... how are you going to use this XML?If on the server, your best bet is to use XInclude. XML parsers on servers often have XInclude processors. I know for sure PHP has one.The other way is by using named entities. Read the DTD tutorial for more info on that one.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...