Add xml file and gets attribute from it
Hello,
I have added new .xml file in source tab. I want the attribute from that xml file.
How can I get attribute which I have added to xml ?
Thanks in advance,
Ishani
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hello,
I have added new .xml file in source tab. I want the attribute from that xml file.
How can I get attribute which I have added to xml ?
Thanks in advance,
Ishani
Hi Ishani,
Do you want to read the file content using a service?
Hi,
No I don't want to read using service.
In source tab I added 1 file details.xml inside it there are diiferent tags.
I want to read that tags on page show event. So how can I read those tags ?
Hello!
Upload this file using REST service and specify relative path to file in URL.
Hi Maryna,
Sorry I am not getting you what you are trying to say
Hi Ishani,
For example, you add a file 'test.xml' in a root 'web_resources'.
Then you add the following URL in a service parameter: codetest.xml/code
Please note service Test tab won't work in this case. You would need to test only the whole application either on device or in desktop browser.
Hi,
I am not getting any of the response from URL. then why should I set as parameter ?
I just want to read values from XML which is static
Ishani,
You need to refer to the file somehow. URL parameter can be used to do this. It will be stored locally, so you can use a relative path.
Ok Katya, I will try and let you know