Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Problem with MSXML save to local file.

From: "Daniel" <dpuryear@-------.--->
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)
}
} 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent