using xml parser for some complex lines

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
rogerdv
Posts: 93
Joined: Wed Aug 27, 2003 4:20 pm

using xml parser for some complex lines

Post by rogerdv »

Can I use the xml parser for read something like this:

*
<attribute damage="fire" value="10">
*

If it is possible, can somebody post a code snippet?
ru guo ni yao ai, ni jiang bu hui shi qu
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

Code: Select all

irr::core::stringw TempString = xml->getAttributeValue(L"damage");
irr::s32 MyValue = xml->getAttributeValueAsInt(L"value");
Crud, how do I do this again?
Post Reply