How to update a string in xml file using C++

Sep 28, 2011 at 11:23am
Hi ,

i have a question about dealing xml files with the help of C++.I have an 10 xml file in which i want to search a particular string value and want to change that and after this save the file.


<string>9.21.17.45</string>

as in this example i want to change the 9.21.17.45.

but as i don't find any particular function or way in c++ by which i can do this.

there fore i request if anybody has any idea about this that how to update an xml file using c++ then please guide me.

thanks in advance

Sep 28, 2011 at 1:55pm
Hi,
you are probably using some sort of library to parse the XML? The way to manipulate your XML tree depends on the particular library you use. If you are not using alibrary, consider using one because it will save you a lot of work. Common choices are qt and Xerces-C++ , but there are many more(google a bit)
Topic archived. No new replies allowed.