Click to See Complete Forum and Search --> : writing into a xml config file


Ashish Rajan
April 25th, 2005, 03:36 AM
hi all

can anybody tell how can i write into a xml config file through my visual c++.net program. i m able to read the values in the xml file but i don not have any idea how i can write the values through a program.
somebody plz help me out

thanx

g_gili
April 25th, 2005, 07:45 AM
In xml you can write whit the notepad I think you want to write in the file whith your vc++ program. You have to find the tags <bla then tou write to the file
char s[100];

FILE *f f=fopen("file.asdg","%s",&s);
(xml file is like just another file whit text on it.)

cilu
April 25th, 2005, 11:44 AM
Take a look at the System::XML namespace.
XMLReader/XMLTextReader
XMLWriter/XMLTextWriter
XMLDocument
XMLNode
and an entire bunch of other classes to work with XML.