XML issue

Discussion and feedback on Construct 2

Post » Thu May 17, 2012 12:21 am

Hi,
I'm having a trouble with XML use.

The question is, when I copy a XML file in a XML load: action I need to put "" in categories names, like in the following image:





And this works fine!

But when I load the XML file with AJAX I cannot put the "" in categories names, and so I cannot use categories like a comparison.

Any help is welcome.
B
101
S
9
G
8
Posts: 178
Reputation: 8,349

Post » Thu May 17, 2012 2:03 am

[code]replace(AJAX.LastData, """", """""")[/code]

replace all the " in AJAX.LastData with ""
B
55
S
28
G
18
Posts: 1,520
Reputation: 25,315

Post » Thu May 17, 2012 2:37 am

Hey man is a great idea, let's see if it works.
B
101
S
9
G
8
Posts: 178
Reputation: 8,349

Post » Thu May 17, 2012 11:57 am

You only need "" to mark a single " when typing in the parameters dialog in Construct 2. If you are using an external file which you AJAX you can format it normally.
Scirra Founder
B
378
S
220
G
84
Posts: 23,871
Reputation: 188,157


Return to Construct 2 General

Who is online

Users browsing this forum: Darknessed, zenox98 and 6 guests