Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2006 Nov : Reading XML stream using unmanaged c++

www.cryer.info
Managed Newsgroup Archive

Reading XML stream using unmanaged c++

Subject:Reading XML stream using unmanaged c++
Posted by:"Mayur" (may..@activelement.com)
Date:Thu, 16 Nov 2006 17:31:09 +0530

Hello All,

My code below sending request to web server and getting response as XML
string.
char* response;
wf.getResponse(response,500);

where outout of above function returns xml string which is stored in
response variable.

response ="<login>
  <session_id>50e39f252f247cc8e4ebb40416f16c38</session_id>
  <logged_in>TRUE</logged_in>
  <voice_enabled>TRUE</voice_enabled>
  <ads_disabled>TRUE</ads_disabled>
  <user_id>97558</user_id>
  -
- <buddy_list>
  <user_id>97002</user_id>
  <username>unicorn11</username>
  <logged_in>FALSE</logged_in>
  <game_id>0</game_id>
  <user_id>97562</user_id>
  <username>yashwant</username>
  <logged_in>FALSE</logged_in>
  <game_id>0</game_id>
  </buddy_list>
  <auto_join_channel />
  <button_config />
  </login>";

I need to parse this string so that i can check output  where user is logged
in whats game ID and all these parameter i required to manuoulate
my task.

where i implemeneted this in c# using XmlTextReader which is so simple but i
need it in unmanaged c++ application..


so please help me regarding this....
wating for reply.
Mayur

Replies:

www.cryer.info
Managed Newsgroup Archive