I want to be able to display a .docx file or a word .xml file in a web page and keep the formating. I am writing a book for fun but want to put it out on my web page every weekend. All I want to have to do is upload the Word document to the web site.
Code
<!DOCTYPE html>
<html>
<body>
<script>
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
else
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","MyWorddocument.xml",false); <-- This should open the file
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;
</script>
</body>
</html>
Do I need to have to iterate through it with some Javascript?