Ok, here is the situation. I have a web page that has some in-line XML that is generated from backend c#. This is working just fine. The page also contains some JavaScript that parses the XML. Everything works part of the time. The main problem is the XML object doesn't get initialized every time, and the parse function crash. If you hit refresh a few times it will suddenly work. I thought it may be a timing problem (the parse function being run before the XML is done being loaded), but it's not. I added some time delay stuff, but the XML object never gets initialized. I even created a static version of the page (without the backend stuff) and it still only works half the time. If anyone has any ideas, let me know.