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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:31:10+00:00 2026-05-22T22:31:10+00:00

i want to show an xml file inside an iframe. it works fine in

  • 0

i want to show an xml file inside an iframe.
it works fine in firefox and ie but in chrome show the xml as text.

so i wanted to check if this is a general problem.
for example:
if i use the View an XML food menu link that is located in http://www.w3schools.com/xml/xml_examples.asp then i get the xml shown as a text file.

if i right click the link and chose open in new tab it will show the xml as it should.
or if i open a new tab and put the url http://www.w3schools.com/xml/simple.xml it shows the file as an xml file.

if you press the right mouse button and select “open in a new tab” it will show the xml as it should.

i think that whatever causes this problem causes the problem i am facing.
so my questions are:

  1. what causes this ?
  2. is there a way around this problem ?
  3. is this a bug in chrome ?

thanks.

chrome version is 11.0.696.65

OS: windows xp,i have also checked this in windows 7

  • 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-22T22:31:11+00:00Added an answer on May 22, 2026 at 10:31 pm

    For me this is definitely Google Chrome bug. Try to use right-click on that link and select “Open link in new tab” or “Open link in new window” to see pretty printed XML.

    enter image description here

    There is target="_blank" attribute within anchor element, which causes that problem:

    <a target="_blank" href="simple.xml">View an XML food menu</a>
    

    Look at another site http://www.xmlfiles.com/examples/. There is no target="_blank" and links works well.

    You can use Inspect Element → Edit as HTML option to remove that attribute target="_blank" and after that XML is printed well too.

    enter image description here

    Finally I found Chromium Issue 84128 (reported 26/5/2011, version 11.0.696.71) for that.

    You don’t need to add any explicite XSLT stylesheet. That’s simply not the case here. If there is no stylesheet applied, then browser implicitly uses their built-in, default variant.

    Edit:

    I downloaded Google Chrome 12 beta (version 12.0.742.77 beta-m) beta-m and here this bug is solved.

    Comment 93 by project member vse...@chromium.org, May 3, 2011 
    The target="_blank" problem is already fixed in Chrome 12.
    

    (from http://code.google.com/p/chromium/issues/detail?id=434)

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

Sidebar

Related Questions

I want to read some nodes of a XML file and show their values
I want to start jquery slide show on click, using xml file, please anyone
I have a XML file, that looks like this inside: <Data> <INFO> .. ...
i want to show String Array from arrays.xml file to a Custom dialog box
I want to show two animation simultaneously programatically not in XML file.It should ROTATE
my code is showing all the addresses of shops.xml file. but i want to
Given my xml file below, I want to show the ListView when my object
I want to show a border type look for an element but without using
I want to show my groupview with 2 lines to down direction, but only
I am using asp.net mvc 1.0 and I want to return a XML file

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.