LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-02-2004, 08:16 AM   #1
alix123
Member
 
Registered: Nov 2004
Posts: 63

Rep: Reputation: 15
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 . .....

Last edited by alix123; 12-02-2004 at 08:18 AM.
 
Old 12-02-2004, 12:18 PM   #2
Genjix
Member
 
Registered: Oct 2003
Location: Pico
Distribution: SUSE 9.1
Posts: 83

Rep: Reputation: 15
use TinyXml .. even if your coding in C, just use it and compile using g++.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Read Write for NTFS file system geeedeee Linux - Laptop and Netbook 8 06-05-2006 07:41 PM
Could I create a FAT partition that both WinXP and Linux could read/write to? EOHooligan Linux - General 4 01-25-2005 11:48 AM
read the input file and write in the given format suchi_s Programming 8 12-17-2004 01:12 AM
How can i read an write to a HTML or xml file using C alix123 Programming 1 11-24-2004 05:07 AM
Change from Read only to Read Write File System? justiceisblind Linux - Newbie 3 03-03-2002 07:23 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration