Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

How to fix iframe issue that displays XML values instead of formatted XML in IE11

$
0
0

The following sub.jsp file shows the formatted XML properly as expected when is opened directly:

<% response.setContentType("text/xml"); %><book><chapter1>chapter 1</chapter1><chapter2>chapter 2</chapter2></book>

IE11 shows the result as below which are colored and can be collapsed or un-collapsed:

<book>

<chapter1>chapter 1</chapter1>

<chapter2>chapter 2</chapter2>

</book>

But if the sub.jsp is opened in an iframe from the below main.html, it only shows the values of the XML in the iframe:

<!DOCTYPE html><html><head><meta charset="ISO-8859-1"><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Insert title here</title></head><body><iframe src="sub.jsp"></iframe></body></html>

The iframe shows only the XML values, i.e., chapter 1 chapter 2 in IE11. This issue does not happen in IE8.

I appreciate to your if you know how to address this issue.

Regards, Amir



Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>