Advertisement

Dynamic updation of XML file

Started by December 09, 2005 02:08 AM
1 comment, last by LorenzoGatti 18 years, 9 months ago
Dear Experts, I need some information on dynamic updation of XML file. Our application asks the user to insert a file by giving the user browsing option. We want our XML file (which contains the information about the residing files) to be dynamically updated as soon user specifies the path of the inserted file. The next task is to dynamically update the XML file once the user select the file to be deleted by clicking on the Application UI. We have to develop the code in C++. Kindly send across your suggestion, opinion and helpful codes. Regards, Mayank Srivastava
You can easily manage the file system on a web server using CGI. Set up the server to allow for "Execute" permissions on web programs.

You can program CGI applications in C++. The following link should contain ample information for doing this:

http://cgi.resourceindex.com/
Advertisement
The usual approach to updating XML files is maintaining an object tree in memory matching the document, containing either your custom objects or the generic nodes from DOM or a similar API, altering the object tree and overwriting the old version of the file with a dump of the whole modified tree to an updated document (XML output is a built in feature of most XML handling libraries like libxml, but it is very easy to reimplement).

Omae Wa Mou Shindeiru

This topic is closed to new replies.

Advertisement