Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6636379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:10:42+00:00 2026-05-25T23:10:42+00:00

I want to parse xml webservice in my phonegap application but i don’t have

  • 0

I want to parse xml webservice in my phonegap application but i don’t have any idea how is it possiblem.I tried it with my local xml file which is stored in my remote server and it is working fine but when i am calling server side xml file then i am not getting any result.Pls anybody have idea then please solve my issue. Pls any one have working simple code then pls send it to me. I tried to find out my solution from google but didn’t get any answer .Please solve my issue.My server file is http://www.edumobile.org/blog/uploads/XML-parsing-data/Data.xml.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:10:43+00:00Added an answer on May 25, 2026 at 11:10 pm

    please try following code in your index.html file, I have tested the url (http://www.edumobile.org/blog/uploads/XML-parsing-data/Data.xml) in iPhone/Android Simulator and its work like charm.

    <html>
    <head>
    <script src="js/jquery-1.4.2.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script>
    function bodyload(){
        alert("We are calling jquery's ajax function and on success callback xml parsing are done");
    $.ajax({  
        url:'http://www.edumobile.org/blog/uploads/XML-parsing-data/Data.xml',  
        dataType:'application/xml', 
        timeout:10000,  
        type:'POST',  
        success:function(data) {
            $("#bookInFo").html("");
             $("#bookInFo").append("<hr>");
             $(data).find("Book").each(function () {
                  $("#bookInFo").append("<br> Name: " + $(this).find("name").text());
                  $("#bookInFo").append("<br> Address: " + $(this).find("address").text());
                  $("#bookInFo").append("<br> Country: " + $(this).find("country").text());
                  $("#bookInFo").append("<br><hr>");
             });
         },  
        error:function(XMLHttpRequest,textStatus, errorThrown) {     
          alert("Error status :"+textStatus);  
          alert("Error type :"+errorThrown);  
          alert("Error message :"+XMLHttpRequest.responseXML);
          $( "#bookInFo" ).append( XMLHttpRequest.responseXML);
        }
        });
    }   
    </script>
    </head>
    <body onload="bodyload()">
    <button onclick="bodyload()">Ajax call</button>
    <p id="bookInFo"></p>
    </body>
    </html>
    

    Output-
    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to parse xml files that have elements like these: <element>&amp</element> <element>&amp;</element> But
Like the title says, I want to parse XML in my iPhone application, but
I want to parse a XML document once - at Rails application startup. It
I want to sax-parse in nokogiri, but when it comes to parse xml element
I want to parse a large XML file and I have two options: Perl
I want to parse a couple of thousands XML-files from a website(I have permission)
I want parse xml by looping through it. I referred this but I am
i have a dataset returned by .net webservice and i want to parse this
I am beginner in iPhone development. I want to parse xml webservice in UITableView
I want a common Parser which parse any type of XMl response. At present

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.