posted 16 years ago
Hi Deepak,
Thanks for your reply.
Here i am not generating xml by using any parsers,apis.
I am just forming the data as xml nodes which has to pass to fussion charts.
From database i was getting data like this,which has below.
I am trying to plot msline chart using msline.swf file in jsp.
I am storing each column in one bean whch are coming from database.
After tat i m using prepareList(vB_CL_Cust_NPS.getYr4_data(),nps_mn1,vB_CL_Cust_NPS.getSegment4_data(),vB_CL_Cust_NPS.getNps4_data()) whch accepts 4 columns as beans from dtabase.
prepareList() cretas one list object with data whch are passed to that method.
After that i am using readData(List list),whch accepts above list as parameter.
By iterating mapOfCategory, i am getting category lables.
and mapOfDataSet generates dataset with corresponding set values.
The above hashmaps passed to below methods to get categories and datasets wth set values.
I am calling all these methods from jsp as fallows ....
At last i have final xml string(strXML1) like this ...
tats wat i am doing to get xml file.
i hope now you understood my problem.
Thanks,
Anila....
Thanks & Regards,
Anila...