The following code gives me an exception on the XMLFormatTarget
line, but if I change the string from "C:/test.xml"
to "test.xml"
it works fine.
// test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/framework/LocalFileFormatTarget.hpp>
using namespace xercesc;
int main()
{
XMLPlatformUtils::Initialize();
XMLFormatTarget *formatTarget = new LocalFileFormatTarget("C:/test.xml");
return 0;
}
[edit] Xerces exception is:
Error Message: unable to open file 'C:\test.xml'
Windows exception is:
Access is denied