Jump to content

xml dom


Guest EricWhitehead

Recommended Posts

Guest EricWhitehead

HiI have written an XML recipe book. I have also written a web page to select a recipe and display it. It works great in IE but I cannot get it to work in ff!The XML file is like

<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="recipebook.xsl"?><cookeryBook><recipe>		<title>Beer Cheesecake</title>		<ingredients>			<Ingredient>.....</recipe>	</cookeryBook>

The relevent part of the web page is

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml.dtd"><html><head>	<script type="text/javascript" >var xmlDoc=document.implementation.createDocument("","",null);xmlDoc.load("RecipeBook.xml");.....</script></head><body></body></html>

As I said everything works fine in IE but, as far as I can tell, the xml file is not loaded in the ff version!Eric

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...