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
108
S
11
G
8
Posts: 180
Reputation: 8,728

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,620

Post » Thu May 17, 2012 2:37 am

Hey man is a great idea, let's see if it works.
B
108
S
11
G
8
Posts: 180
Reputation: 8,728

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
387
S
230
G
87
Posts: 24,248
Reputation: 192,228


Return to Construct 2 General

Who is online

Users browsing this forum: brushfe, Yahoo [Bot] and 1 guest