简体   繁体   中英

Display xml content in iframe

I want to display XML content in iFrame. I tried with html code below but it didn't work. It just show a blank page.

 <!DOCTYPE html> <html> <body> <iframe src="gui.xml" WIDTH="78%" HEIGHT="300"> <p>Your browser does not support iframes.</p> </iframe> </body> </html> 

Tried your code with a sample xml of mine and worked fine. Are you sure you are giving the right path to xml file? What you are including in your code means your xml is exactly in the same folder as your html file

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM