Display xml in browser without warning

I have an xml file that I display in an iframe, but it gives me a warning that "This XML file has no style information associated with it. The document tree is shown below."

When I add stylesheet information to this xml, it will only show the data inside the tag.

How can I show it in the usual way without warning.

Thanks in advance.

+3


source to share


1 answer


First, rename the XML file to .txt.



XML files must be interpreted and not displayed in their original form. (They are not needed; under normal circumstances, you can always see the XML source by clicking View Source.) If you want to display the file as is, the file must be a plain text file.

+1


source







All Articles