Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Problem with MSXML save to local file. Problem with MSXML save to local file.To: NULL Date: 9/2/2005 1:45:00 PM I'm just beginning to get into the XSLT thing and have been studying several samples from different sites. I'm particularly impressed with the seven part series by Joe Slovinski at http://www.15seconds.com/issue/010921.htm. I've down loaded the samples and have them on the desktop for play time (Win XP, SP2, IE6.0). Other than an "access denied" message, things are pretty much as advertised. I can not for the life of me figure out what permissions need to granted or where to set them in order for the example to save a copy of the local XML back to the local system. Here's two of the JavaScript functions involved. Other than my "save" problem, I've been able to walk through the series ( with a half dozen or so new books) and understand what's going on... Any help would be greatly appriciated. function updateEntity(entityID) { var entity; var xslDoc; var container; var i; xslDoc = new ActiveXObject('MSXML2.FreeThreadedDOMDocument') xslDoc.async = false; xslDoc.load("admin/tree.xslt"); entity = xmlDoc.documentElement.selectSingleNode("//entity[@id='" + entityID +"']"); for(i=0; i < entity.childNodes.length; i++) { if(entity.childNodes(i).baseName != "contents") { entity.childNodes(i).text = document.all[entity.childNodes(i).baseName].value; } } container = document.createElement("DIV"); container.innerHTML = entity.transformNode(xslDoc) container.childNodes(0).style.display = "block"; document.all[entityID].swapNode(container.childNodes(0)); container = null; saveXML(); } function saveXML() { try { xmlDoc.save(xmlDoc.XMLDocument); } catch (e) { displayError("Error updating XML feed: " + e.message + ". Please check your local directory and file permissions.", 8000) } } | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
