This content has been marked as final. Show 4 replies
The xml structure u are using is bit sketchy to parse our easily.
we can parse out this xml in the same format what u are expected.
but, if you add more , it will be more sketchy.
So, try to change the xml structure like the following...
Ok, thanks. I've changed the structure of my xml file like you proposed. My question is now if I need to have a for loop for every array I want to create?
this works, but it's not the best way to parse xml files. It depends on what you want to do with the arrays once they're created.
with the attached code, the "sm0_array", "sm1_array", etc are created within the scope of the "loadXML" object, which isn't a good idea, generally speaking.
Thanks, I will try this. And also put the creation of the arrays in an outside function, maybe thats a better idea? Why shouldn't it be inside the loadXML object?