I am writing a local HTML file that needs to access an XML file that sits right next to the HTML. I can't figure out a simple way to load the contents of the XML file? This has to work on a local system without a server/localhost.
JQuery / Ajax is not working without a server/localhost, so I figured why not load the XML the same as JS or CSS files? Is this possible?
<head>
<title>Local html file</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<!-- here we have a local css file -->
<link rel="stylesheet" type="text/css" href="default.css" />
<!-- here we have a local js file -->
<script src="Main.js"></script>
<!-- so why can't we have a local xml file? -->
<link rel="xml" type="text/xml" href="myfile.xml" />
</head>