I assume it's a typo, but to load using your parent directory, you should be using the string "..\\sample.xml" in C/C++.

What API are you using?