Logic issue with entites and BlitzXML

Blitz3D Forums/Blitz3D Programming/Logic issue with entites and BlitzXML

nrasool(Posted 2009) [#1]
Hey guys,

I'm converting a bit of codes so it loads easily in XML using BlitzXML, it going good. What I want to do, is to load and animate a model, so in my test xml I have the following:



Now the issue is in my blitz coding, how would I go to the role for the actor. I thought about putting another for loop eg using xmlnodechild, but the logic is not getting right, please could someone just give a friendly advise, I don't want you to do all the coding, just a heads up really




nrasool(Posted 2009) [#2]
Hey there,

Just to add into this, My issue is that to I gone into the Actor Type, but how do I drill down to the Role Type, then Hero type. Would you put another recursive for loop for it to drill down, or would there be an easier way. I have been looking through you help file and tried to use xmlNodeChild("role", "hero"), but it is not picking it up when I check through debug

Please could anyone give me a stepping stone to this.

Kind Regards


nrasool(Posted 2009) [#3]
Never mind with this, I've cracked it now, here is my fixed coding