Could not open file [TESTXML.xml]

Viewed 611

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 DOMConfigurator::configure().

I pass it a literal string, which is the name of my configuration file, in this case, "TESTXML.xml", however, I receive the message on my console that:

log4cxx: Could not open file [TESTXML.xml].

I have also tried passing it a string variable, to no avail.

Why can't I open the file? I have added my file under "Source Files" and modified the properties:

  • Content: Yes
  • Excluded From Build: No

Perhaps there is a setting in MSVS2015 I am forgetting to configure?

1 Answers
Related