I am being tasked to essentially write a potentially enormous function in C++ that deals with searching and writing to an XML file.
Is there a way in C++ to search through an XML file, either as an xml file or just raw text, take in a path and write a record at the end of that path. For example:
<File>
<Record>
<Name>Joe</Name>
<Age>52</Age>
</Record>
</File>
The function would search for the end of the latest record, then insert a line for a new Record, then next go through the loop, it finds the new record tag, inserts the name, then next time it inserts the age, then it closes the Record tag.
Any ideas or sources that could be helpful for this level of manipulation? Tips on how it should go?
To those calling this a duplicate, allow me to add that I cannot use a 3rd party DLL. I have to code everything on my own.