View Single Post
Old Dec 28th, 2006, 6:30 AM   #4
honeybee
Unverified User
 
Join Date: Dec 2006
Posts: 6
Rep Power: 0 honeybee is on a distinguished road
Thanx for ur replies,

I learned some documentation from net and from this link http://www.gamasutra.com/features/20...uerig_01.shtml I found, how to parse XML file using tinyxml. But just to confirm that if I follow that example and write this:

class Login
{
public:
void Parse(TiXmlHandle handle);

protected:
string m_name;
string m_password;
};

void Login:arse(TiXmlHandle handle)
{
TiXmlElement* section;

section = handle.FirstChildElement( "user" ).Element();
section->QueryFloatAttribute( "name" , &m_name);
section->QueryFloatAttribute( "password" , &m_password);
}

Then it will store the name and password string in m_name and m_password respectively??

Thanx for ur co-operation!
regards
honeybee is offline   Reply With Quote