create, read and write a table in xml file using C
using C I have to search for a xml file at two particular location if the file does not exists then create a file at teh two location and write a structre into it in tabular form for example just read it what i excatly want
struct my_data { int no; char *input ; char *output; char * descritpiton; char *time; }; now i want to write the structure elements to a xml file in a tabular form as an output of my program at the same time i want read some of the output as input to my program for example say i want pick up the value from the html file where time is just before the current time. FORMAT FOR xml FILE is given BELOW /*******xml file starts here *************/ " This is MY Program Output genrated on "current date and time" Number Input output Description time value1 valu2 value3 value4 /********** xml file end here **********/ every time i run the code new values of the structure elemnts will be appneded to the exisitng XML file or depening upon the some conditions a new XML file is generated and values ar added to new file . CAN SOME BODY PROVIDE ME THE SOURCE CODE FOR THE ABOVE ..... i dnt know xml at all but i know C I will be very thankfull to u all iam at the do or die situation . ..... |
use TinyXml .. even if your coding in C, just use it and compile using g++.
|
All times are GMT -5. The time now is 03:46 PM. |