|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to edit xml file from javascript
When i try to save the xml file, after appending a child it says an error message "access denied". refer the code below
var xmlDoc= new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async=false; xmlDoc.load(xmlFile) var person = xmlDoc.createNode("element", "person", ""); xmlDoc.documentElement.appendChild(person); xmlDoc.save(xmlFile) any help will be appreciated vijay |
|
#2
|
||||
|
||||
|
I imagine its not a problem with the javascript, Im no expert but juding by the error message. Are you 100% positive that you have access? Is this your machine? Do you have activeX turned on? Have you looked into using something more appropriate for this job such as server-side scripting.
One of many articles. http://news.zdnet.com/2100-1009_22-5250697.html?tag=nl
__________________
Teflon - The Black <desc>Mark This Up</desc> |
|
#3
|
|||
|
|||
|
i'm not sure you can save xml file (or other file) with javascript process... Browser have just acces to internet temp file not all the disk. And Javascript is not on server side i think
![]() But if i'm wrong, I want to see the solution ![]() |
|
#4
|
||||
|
||||
|
pouype it is possible with javascript.
You are correct javascript is client-side. But I would STRONGLY encourage you to use a server-side scripting language for file interaction. ACTIVE-X is one of THE biggest security flaws... http://www.experts-exchange.com/Web...Q_20837002.html http://www.javascripter.net/faq/writinga.htm http://developer.irt.org/script/1421.htm |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > how to edit xml file from javascript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|