When loading this XML file, it reads the "test1" strings just fine, but it seems to have a problem to read the "test2" strings. Did i write it wrong?
This should help.
https://www.scirra.com/tutorials/354/xml-parsing
blackhornet thanks, but i read this already and i didnt see what is wrong with my file. i'm totally new to this but couldnt find how to write it right. can you explain what i'm doing wrong?
try
<test> <test1> <hint.......................... <hint.......................... </test1> <test2> <hint.......................... <hint.......................... </test2> </test>[/code:dxyxgdei]
You are one level in. You Need tags to encapsulate the test elements:
<tests>
<test1>
</test1>
<test2>
</tests>
but as the example shows, you shouldn't need to differentiate everything. Just add <test> elements.
you mean
</test2>
blackhornet
Oops. Yes. Anyway it would be better to go with:
<test>
</test>
Develop games in your browser. Powerful, performant & highly capable.
Oh ok gonna try that. Thank you guys so much!
Ok, seems it's still not working. Same problem, the first test is loaded correctly, the second is just blank.
Post a capx.