[SOLVED] Problem reusing a XML object

Get help using Construct 2

Post » Thu May 01, 2014 2:00 pm

I'm not sure why happen this: I use a XML object for make a "for each" and found data by first time, then I load again the same data (like plain string , for example) on that XML object and not work the same operation (not give any result then) ... It's like if the Load action from XML not reset the object. I must use another XML instance for work. Somebody can help me?

EDIT: I feel so embarased... I was calling the function for make the new search from another "For each" of the XML. I was carring the node search position from the another loop, for that I wasn't getting any result (Like doing a subevent). I put the function call outside and everything works. Works like a normal programing language, really nice :)

Thanks to blackhornet for response my fault. :oops:
Last edited by gabrign on Thu May 01, 2014 4:29 pm, edited 2 times in total.
Posts: 21
Reputation: 1,171

Post » Thu May 01, 2014 2:21 pm

This is a variation on a tutorial I wrote for XML. Seems to work fine reloading.

You do not have the required permissions to view the files attached to this post.
Posts: 3,862
Reputation: 158,460

Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 7 guests