What is wrong with this XML?

Get help using Construct 2

Post » Fri Mar 04, 2016 4:19 pm

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?

Image
B
11
S
3
G
2
Posts: 76
Reputation: 1,891

Post » Fri Mar 04, 2016 4:23 pm

ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Fri Mar 04, 2016 4:26 pm

@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?
B
11
S
3
G
2
Posts: 76
Reputation: 1,891

Post » Fri Mar 04, 2016 4:50 pm

try

Code: Select all
<test>

<test1>

<hint..........................
<hint..........................

</test1>

<test2>

<hint..........................
<hint..........................

</test2>

</test>
B
66
S
24
G
7
Posts: 1,515
Reputation: 11,041

Post » Fri Mar 04, 2016 4:55 pm

You are one level in. You Need tags to encapsulate the test elements:
<tests>
<test1>
</test1>
<test2>
<test2>
</tests>

but as the example shows, you shouldn't need to differentiate everything. Just add <test> elements.
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Fri Mar 04, 2016 5:41 pm

you mean
<tests>
<test1>
</test1>
<test2>
</test2>
</tests>
@blackhornet
Image Image
B
25
S
14
G
137
Posts: 876
Reputation: 71,505

Post » Fri Mar 04, 2016 5:50 pm

Oops. Yes. Anyway it would be better to go with:
<tests>
<test>
</test>
<test>
</test>
</tests>
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Fri Mar 04, 2016 6:43 pm

Oh ok gonna try that. Thank you guys so much!
B
11
S
3
G
2
Posts: 76
Reputation: 1,891

Post » Fri Mar 04, 2016 7:28 pm

Ok, seems it's still not working. Same problem, the first test is loaded correctly, the second is just blank.
B
11
S
3
G
2
Posts: 76
Reputation: 1,891

Post » Fri Mar 04, 2016 7:30 pm

Post a capx.
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, MeteoorSC, TRMG and 25 guests