Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 19th, 2003, 09:28 AM
Registered User
 
Join Date: Sep 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default error using XML save method

Greetings all,

I'm having a bit of a problem with the save method and I'm not sure how to fix it.

I have a javascript function in which I change some attributes of the XML and then save it to an xml file. In the script I save the output file name "sponsors.xml" to a variable "newXMLFile". At the end of the script I used the line "alert(xmlSrc.xml)" to see that my XML has been revised (this is for debugging only) and then use the line "xmlSrc.save(newXMLFile)". When I load it, I get a "permission denied" and a reference to the save method line. All of this is on the local machine and there are no permission restrictions on any files or folders I am dealing with. I am almost finished this project except for this problem and have wasted countless hours trying different things and scouring the web for help. If anyone out there can help me with this, I would greatly appreciate it.

Dose
 
Old November 13th, 2003, 01:24 PM
Registered User
 
Join Date: Nov 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Generally HTML files are not "permitted" to save to the local machine. To get around this change the extension from HTM or HTML to HTA (Hypertext Application).





Similar Threads
Thread Thread Starter Forum Replies Last Post
save pollVotes into xml Maxxim ASP.NET 2.0 Professional 0 October 25th, 2007 05:38 PM
Save database schema to XML file brettk_1 General .NET 2 September 16th, 2006 04:27 AM
save word formfields into an xml file manjugv Word VBA 0 May 1st, 2006 04:44 PM
Can't save XMLDoc to a xml file using JScript induriprakash Javascript 2 May 13th, 2005 02:44 PM
error using XML save method in javascript Heroic Dose Javascript 3 September 22nd, 2003 08:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.