I have a xml file on my server. I have the following two questions.
- How to send this xml file using php to the clients browser ?
- The client would be making an ajax get request to the php script that sends the xml as a response. On the server side i use php simplexml functions to parse xml data. But, on the client end what would be the best way to parse the xml data ?
Thank You
You would use these two commands:
You didn’t say anything about receiving XML on the server, so I’m not sure what you mean by parsing.
Regarding parsing XML in JavaScript… I defer to someone with more experience.