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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:57:34+00:00 2026-05-29T06:57:34+00:00

I retrieve XML from a external provider, and for debugging i usually view it

  • 0

I retrieve XML from a external provider, and for debugging i usually view it from the browser. Unfortunately the case is that only Internet Explorer is able to render the data as XML. All other browser as Chrome, Safari, Firefox all render it as plain text for some reason.

Can anybody explain why this is the case?

Thanks.

  • 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-29T06:57:34+00:00Added an answer on May 29, 2026 at 6:57 am

    Try to(if you can):

    • force the mimetype of the returning page to text/xml
    • control the declaration of the xml to check if its correct
    • control the DOCTYPE declaration if is correct

    You would paste here your code/the returned XML to show what is wrong!

    ADDED LATER

    Infact if the XML is not well formacted (ex: theres not a good escape of the attribute’s value on some elements) The browser show all as plain text. Try to validate the text using the W3C XML Validator

    Then as i said, in the very first point, the returning mimetype in the request can be wrong: i have an example of you could find in the header sometimes(wrong example):

     POST /path/to/the/service/ HTTP/1.1
     Host: www.example.com
     Content-Type: text/plain; charset=utf-8
     Content-Length: length
    
     <?xml version="1.0" encoding="utf-8"?>
     ....
    

    If you look at the Content-Type you will see Content-Type: text/plain; charset=utf-8 that would be Content-Type: text/xml; charset=utf-8 but the only way to fix that is modify the source code of the webservice that response with xml file.
    To verify that you can, for example using Chrome press <F12>, choose Network and reload the page(pointing to the resource that you want to look at) and take a look to the Type’s column.

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

Sidebar

Related Questions

I'm writing code where I retrieve XML from a web api, then parse that
My task is to retrieve an xml from https://test24.highrisehq.com/tasks/upcoming.xml that is a secure connection
In my Android application, I want to retrieve an XML file from the internet
I'm trying to use e4x to retrieve xml from the result event thrown when
Hi I get problem retrieve XML data from SQL2000 server. The table structure is
I'm trying to retrieve an XML stream from a URL. For most URLs my
From the XML below I'm trying to retrieve the second element in the sequence.
Using the lists webservice I retrieve the items from a list. In the XML
I am calling 5 external servers to retrieve XML-based data for each request for
I am using org.apache.http.impl.client.DefaultHttpClient to retrieve xml from a webservice and am trying to

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.