Reading XML stream using unmanaged c++

M

Mayur

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Reading XML Stream in C++ 2

Top