|
-
October 23rd, 2019, 06:38 PM
#1
Urgent: XML path
Hi,
I had asked a Q about loading the xml from a path. But then, I thought this wil work implicitly. But now im testing my code with the client and ah ! no its not working.
Code:
function( BSTR * path)
{
HRESULT hr = CoInitialize(NULL);
MSXML2::IXMLDOMDocumentPtr pXMLDom;
MSXML2::IXMLDOMDocumentPtr pXSLDoc;
MSXML2::IXMLDOMDocumentPtr pXMLOut;
std::wstring pathofXmls(*modelList);
xmlName = "\\Bob.xml";
xmlInfo += xmlName;
pXMLDom->load(L"xmlInfo");
}
In the above function, receive the input
pathofXmls = L"F:\\Temp\\New\\x64\\Debug"
Now I see the xml is not getting loaded.
But on the other hand if i put the xml in the current directory, it gets loaded properly.
@kaud: please help me
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|