Handle xml in ASP

Ray (14)

Usenet Archive
Joined
Nov 18, 2003
Messages
5
Reaction score
0
Hi, Al
There is a xml file, I want to read/write it in ASP. As following source code, dim objXm Set objXML = Server.CreateObject("Microsoft.XMLDOM" objXML.async = Fals objXML.load server.mappath("../online.xml" If objXML.parseError.errorCode 0 The response.write "parse online.xml error(" & xsl & ") response.en End I

dim rootNod
Set rootNode = objXML.documentElemen

... ...

objXML.Save server.mappath("../online.xml"
But when I open this page, an error occured in last line (-- objXML.Save server.mappath("../online.xml") --)
error information

Error Type
msxml3.dll (0x80070005
Access is denied.
I think it should be caused Not write-right, but I have add the right to the xml file Somebody can help me Thank
 

Jeff Cochran

Usenet Archive
Joined
Nov 16, 2000
Messages
1,346
Reaction score
0
Hi, All
There is a xml file, I want to read/write it in ASP. As following source code, dim objXml Set objXML = Server.CreateObject("Microsoft.XMLDOM") objXML.async = False objXML.load server.mappath("../online.xml") If objXML.parseError.errorCode 0 Then response.write "parse online.xml error(" & xsl & ")" response.end End If

dim rootNode
Set rootNode = objXML.documentElement

... ....

objXML.Save server.mappath("../online.xml")
But when I open this page, an error occured in last line (-- objXML.Save server.mappath("../online.xml") --).
error information:

Error Type:
msxml3.dll (0x80070005)
Access is denied.
I think it should be caused Not write-right, but I have add the right to the xml file.
Somebody can help me?

Added the right for *which account*?

Jeff
 

Jeff Cochran

Usenet Archive
Joined
Nov 16, 2000
Messages
1,346
Reaction score
0
Add right to anonymous account.

And you're sure the file/folder path is correct? You've done a Response.Write of the Server.MapPath statement to be sure?

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,246
Members
248,133
Latest member
DujonT

Latest Threads

Top