writing XML with Xerces 3.0.1 and C++ on windows

后端 未结 4 1084
执念已碎
执念已碎 2020-12-17 06:30

i have the following function i wrote to create an XML file using Xerces 3.0.1, if i call this function with a filePath of \"foo.xml\" or \"../foo.xml\" it works great, but

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 06:46

    From looking at the source the filename gets passed through to WindowsFileMgr::fileOpen in WindowsFileMgr.cpp, which doesn't appear to be expecting a URI.

    So, have you tried not converting the filename to a URI, e.g. just use:

    c:\foo.xml
    

    (might need to escape the backslash)

    ?

提交回复
热议问题