From: <inf...@we...> - 2005-04-14 15:16:05
|
hi, i am new to libxml++ and i need a little help. i already tried to use the code from the examples on the website but i dont get it work. i have a xml file like that <?xml version="1.0" encoding="ISO-8859-1" ?> <stuff> <myvalue>entered</myvalue> <timestamp>1113483283</timestamp> <count>12</pms> </stuff> not all nodes must be there, so i only want to read these values which are present and put these into strings. i'd like to programm something like that (pseudo code): foreach( xmlnode in rootnode.get_children() ) { if( xmlnode.name == "myvalue") myvalue == xmlnode.text; if( xmlnode.name == "timestamp") timestamp == xmlnode.text; if( xmlnode.name == "count") count == xmlnode.text; } could anyone help with that and colud give me a code snippet for that, please? greets Christian ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 |