Reading the contents of an XML file has nothing to do with the registry.
However, since you're storing the path to the file in the registry, you can use the
RegQueryValueEx
function to first read the file path into a variable.
To simply read the contents of the file and store to a variable, you can use the
CreateFile
and
ReadFile
APIs.
However, if you want to parse the XML and manipulate it, you need to use the XML Document Object Model (DOM).
You could start here -
A Beginner's Guide to the XML DOM[
^]