hey guys,
so, here is the issue: I got this XML with a very long attribute in it (the attribute is more than a few lines long, it represents a part of an html document using escape tags) - now, I need to edit specific parts of that attribute - my problem is: say i have the attribute node - how...
Hey all,
I am using micorsoft xmlparser, I am doing some parsing and when i am trying to save a new file with the new content i am getting the error msg:"Access Denied" - when i remove the line in which i save the new xml it works perfectly. The problem is that it seems like I can not create a...
Alright, I think it is indeed the folder option thing, Instead of writing in javascript i wrote it in ASP, here is the code:
<html>
<body>
<%
dim xmlDom, Onode
set xmlDom = Server.CreateObject("MSXML2.DOMDocument.4.0")
xmlDom.load("Server.Mappath("note.xml"))
//checking for parser load error -...
when i open the ASP file (i know that for now it looks like an html one, and i know i am rather clueless), I go to Internet Explorer and on the address bar type the following:
http://localhost/myWeb/test1.asp
so i guess that means i use the iis localhost?
thanks for your willingness to help.
Dan
Hey, someone tipped me that maybe it has to do with folder security options - that perhaps I have no atuhorizatino for creating files in the folder this way or something like that. can anyone shed a light over this? how do i change the folder security options?
this is the case:
The XML file and the ASP file will be on the same server, the ASP file will hold a JavaScript code which will perform the manipulation.
anyhow - for now i am just trying to test it on my own computer, using IIS and a simple ASP file with a javascript code - where the xml file...
sry for double-posting:
i have tried to following:
xmlDoc.save("file://C:\\Documents and Settings\\DanC\\Desktop\\XML DOM\\somefile.xml");
and still get the same "Premission Denied" thing - any ideas?
thanks in advance,
Dan
oh, and - I know i can read from the file since I use document.write(xmlDoc.getSingleElement("//to").getAttribute("urgent");
and i do get the value of the attribute "urgent" printed (where "urgent" is an attribute of an element named "to" - obviously the deatils of the XML don't matter, just...
I am not trying to overwrite the file but create new one, I can easily create new files in that folder (right click---->new---->txt file) so i guess that means i can write in that folder - maybe there is something to change in teh folder settings?
thanks in advance,
Dan
Thanks for replying.
Yes, for now I will settle for saving it on my hard-drive -so say i have the path: C:\Documents and Settings\DanC\Desktop\XML DOM
and i want the new XML file to be saved there? what should i write as an arguement to the save method?
i tried to somehow modify what you wrote...
Hey all,
I am sort of new in XML, here is my problem:
I am trying to update an XML document, for that matter I load it with a javascript code, and did some editting - only when try xmlDoc.save("filename.xml"); i get an error saying "permission denied" - So i can not save the xml and hence i can...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.