write on xml file
-
how i can write some data on exiting xml file without deleting its previous saved data on it. i want to know also how to delete an element, for example assume i have an xml file with these data: Mog 3:3 ter 56:3 i want to delete the city with the name mog, so i mean i want to delete the first 4 lines of the above given example please help help Thanks alot Hamody
-
how i can write some data on exiting xml file without deleting its previous saved data on it. i want to know also how to delete an element, for example assume i have an xml file with these data: Mog 3:3 ter 56:3 i want to delete the city with the name mog, so i mean i want to delete the first 4 lines of the above given example please help help Thanks alot Hamody
The XmlDocument class is what you need, it allows you to modify XML using a well defined interface ( called the Document Object Model or DOM ). You'd use XPath to search for the city whose name is Mog, then remove it.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
The XmlDocument class is what you need, it allows you to modify XML using a well defined interface ( called the Document Object Model or DOM ). You'd use XPath to search for the city whose name is Mog, then remove it.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
thnx, i did it, but please i need another help, i want to add datagridview and make its data source from xml file, i did up to this thing but i want to add a cloumn which will contain a hyperlinks, how to add hyperlinks on the datagridview on the windows projects ;-)
Thanks alot Hamody
-
thnx, i did it, but please i need another help, i want to add datagridview and make its data source from xml file, i did up to this thing but i want to add a cloumn which will contain a hyperlinks, how to add hyperlinks on the datagridview on the windows projects ;-)
Thanks alot Hamody
I've not used that before, can you define the column formats like you do in ASP.NET ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )