Original Post
A client is sending me XML messages. I read the messages into a string buffer. I would like to parse the string directly. However, I'm running into problems. char Buffer[256]; ... ... Buffer is loaded w/ xml message ... VARIANT_BOOL result; _bstr_t *Temp = NULL; HRESULT hr; BSTR MyBSTR; Temp = new _bstr_t(Buffer); if(Temp != NULL) { MyBSTR = Temp->Detach(); hr = pXmlDoc->loadXML( MyBSTR,&result); } I get an access violation error when I run. I must be doing something wrong at the BSTRs. Could someone point me in the right direction. I've parsed files before, but I don't want to save my buffer to a file and reload as a document. Thanks.