I have one application which is passing one (BSTR* ProfileXml) as out parameter. So One I am sending the Profile after allocating it using SysAllocString(Profile)
WCHAR Profile[] =
L"<IhvSecurity xmlns=\"http://www.sampleihv.com/nwifi/profile\">"
L"<IHVSecurityParam2>parameter value</IHVSecurityParam2>"
L"</IhvSecurity>";
It' working fine with paramater values for almost all the ascii character (excluding C0 codes like STX ascii code 2 ETX ascii code 3). As soon I send either of STX or ETX that application send error and asking for valid xml buffer, I am using IXMLDOMElement method for loading profile buffer an modifying buffer and saving again buffer. I haven' mention the encoding in Profile string buffer default is utf - 8.
So I am doing some thing wrong here or We cannot use STX / ETX in xml ??? MSMXL parser cannot parse them. Or they some way / API is there to write this into param buffer is node.
Any help will really appreciated
Thanks