Hi, im trying to parse a XML file so that all the "text"nodes in a certain language are defined as var’s along with their values. As you might have guessed i cant get it to work. this is my xml;
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <data> <english> <screen1> <text1-1>bla 1-1</text1-1> <text1-2>bla 1-2</text1-2> </screen1> </english> <dutch> <screen1> <text1-1>bla dutch 1-1</text1-1> <text1-2>bla dutch 1-2</text1-2> </screen1> </dutch> </data>
i need to loop through the document and then do _root[textname]=textvalue; so it becomes _root[text1-1]=“bla 1-1”
i thought something like this might do the trick, but i can only get the first value with it. So when i change any 0 into a 1 it doesnt work anymore.
Could someone please help me?