I am using Visual Studio 2015.
Currently I am working on a wrapper for log4cxx so that any other logging library can be used later down the line.
I am using DOMConfigurator to parse an XML configuration file. Basically my function wraps
log4cxx: Could not open file [TESTXML.xml].
Perhaps there is a setting in MSVS2015 I am forgetting to configure?
No, it doesn't have to do with the configuration of that file (which should be excluded from the build BTW).
With the information given in your question, the most probable reason that opening the configuration XML file fails is that it's not located in the same directory where your process is started.
Visual Studio will run the executable in the same directory as it was created by default (i.e.
You can modify the process working directory in the project properties debug settings, or open a cmd window, change to the desired working directory and start your executable manually.
Another option is to set the full path filename for the configuration file (e.g.
"c:\user\xyz\MySolution\MyProject\TESTXML.xml"). Remember that for C++ string literals, you need to escape the backslash characters (
\\), unless you are using a raw string literal.