How do I load xml from a file

Get help using Construct 2

Post » Mon Mar 03, 2014 12:52 pm

I'm trying to load xml into my project from a file path. Then place it into a text box.
If i embed the xml i can sort the nodes fine. But i need to load it from a external file.

I'm using a system - on start of layout - xml - load command.
My xml is located here "C:\Work in Progress\aaa.xml"

I added that to the load command in quotes.

Am I using the wrong command? Any help would be apreaciated.

Image
B
8
S
1
Posts: 62
Reputation: 660

Post » Mon Mar 03, 2014 1:07 pm

Use Ajax for loading the file content :

On start of layout : (Ajax) Request "aaa.xml" (tag loadXML)

(Ajax) On "loadXML" completed : (XML) Load XML document from string Ajax.lastData

:)
B
39
S
15
G
5
Posts: 295
Reputation: 6,089


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests