[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.
B
11
S
2
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.

https://www.scirra.com/tutorials/354/xml-parsing
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
21
G
230
Posts: 3,688
Reputation: 128,852


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo and 5 guests