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
110
S
12
G
8
Posts: 180
Reputation: 8,878

Post » Thu May 17, 2012 2:03 am

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

replace all the " in AJAX.LastData with ""
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,650

Post » Thu May 17, 2012 2:37 am

Hey man is a great idea, let's see if it works.
B
110
S
12
G
8
Posts: 180
Reputation: 8,878

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
398
S
236
G
88
Posts: 24,428
Reputation: 194,625


Return to Construct 2 General

Who is online

Users browsing this forum: Yahoo [Bot] and 20 guests