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
90
S
5
G
8
Posts: 164
Reputation: 7,646

Post » Thu May 17, 2012 2:03 am

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

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

Post » Thu May 17, 2012 2:37 am

Hey man is a great idea, let's see if it works.
B
90
S
5
G
8
Posts: 164
Reputation: 7,646

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
359
S
214
G
72
Posts: 22,949
Reputation: 178,544


Return to Construct 2 General

Who is online

Users browsing this forum: shinichild and 18 guests