0

I saw one project in which one developer save one XML(as a database) file having some data .And he call that database (XML file) using Jquery or Ajax and used that data in his project .I want to learn that thing .He placed that file on their project.He call database and fetch data from database.Can you please give me an example in jquery how to fetch data?He is making mobile app using jquery and Phonegap .

Thanks

1 Answer 1

1
$.get('/some/path/file.xml', function (data) {
    var xmlDoc = $(data);
    // traversing:
    var someChildNodes = xmlDoc.find('section > article');
}
Sign up to request clarification or add additional context in comments.

1 Comment

please provide whole example if you have.?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.