RapidXML is one of the available libraries for parsing XML in c++. For getting the values, we can use something like:
node->first_node("xmlnode")->value()
This command returns a char* data type. Is there any way to read the value as Unicode so I can assign it in a WCHAR or wstring variable?
From the manual
so I just use the following:
Note that if you do this, all parameters will be wchar_t, so the call to first_node() also needs to wchar_t. i.e.