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 647921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:46:34+00:00 2026-05-13T21:46:34+00:00

I have one problem , I want to get some data from XML file

  • 0

I have one problem , I want to get some data from XML file (if I can say that it is XML file), with jQuery:

This is my jQuery, it works with normal XML file :

$.ajax({
        type: "GET",
        url: "test.xml",
        dataType: "xml",
        success: function(xml) {
            $(xml).find('result').each(function(){
            var bid = $(this).find('bid').text();
            alert(bid);
            });
            }
        });

But this is the data:

   <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">
<?xml version="1.0" ?> 


<T_transmission> 
<result> 
<last>9.9200</last> 
<bid>9.9000</bid> 
<ask>9.9200</ask> 
<mid>9.9100</mid> 
</result> 

 </T_transmission>

</string>

Because it has “<string ...> it doesn’t work …

Can somebody suggest how to fix it or maybe there are another way to fix …

Thanks a lot !!!!!!

  • 1 1 Answer
  • 1 View
  • 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-13T21:46:34+00:00Added an answer on May 13, 2026 at 9:46 pm

    If the xml format is totally outside your control you could hack it a bit like so. This worked for me in FireFox.

    $.ajax({
      type: "GET",
      url: "test.xml",
    
      // change dataType to 'text' so that jquery doesn't try to parse xml
      dataType: "text",
      success: function(xml) {
    
        // just remove the declaration using replace()
        xml = xml.replace('<?xml version="1.0" ?>', '');
    
        $(xml).find('result').each(function(){
        var bid = $(this).find('bid').text();
        alert(bid);
        });
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I Have activity that get some data from the internet, and shows it to
I want to add one xml file (which has some static data related to
I am new to jquery mobile. I have one problem. I want to increase
I have one problem with Javascript Nodes.I want to find out what button was
I exported some data from my database table into sql file as insert statements.
I have one problem. I have to serialize an object and that sam object
I'm having problem how to formulate NSPredicate to get correct data. I have three
I am trapped in one problem. I have a page which contains some taxboxes.
I am trying to get some data from a GoogleCheckout response. I am using
This is a problem that comes up often when I am importing raw data

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.