-
xml DOM saving error (msxml3.dll)
I have the following procedure in a asp file. Its design to remove a element from kart.xml using DOM. When I save the node tree back to kart.xml using xmldoc.Save(strPath). I get the following error
msxml3.dll (0x80070005)
Access is denied
My msxml3.dll files is store in my windows/system32 dir which is read only. I prefer to keep this dir read only. How do I over come this problem ?
My code is below
private sub deleteKart(v_ISBN)
dim xmldoc,v_counter,v_counter2,v_counter3,v_test,xmlRoot,xmlNodes,xmlItem,curNode,tempNode
dim strPath
dim v_foundone
dim v_shopISBN, v_shopTITLE, v_shopPRICE, v_shopDATE
'dim fileObject
strPath = Server.MapPath("kart.xml")
set xmldoc = Server.CreateObject("Microsoft.XMLDOM")
xmldoc.Async = false
if not xmldoc.Load(strPath) then
response.Write "did not load"
'do some here not sure what
end if
Application.Lock()
set xmlRoot = xmldoc.documentElement
set xmlNodes = xmlRoot.ChildNodes
for each xmlItem In xmlNodes
set curNode = xmlItem.firstChild
set tempNode = curNode
if v_ISBN = curNode.firstChild.NodeValue then
xmlRoot.RemoveChild(xmlItem)
end if
next
'response.Write xmldoc.xml
xmldoc.Save(strPath)
Application.UnLock()
end sub
Similar Threads
-
By crazy-nun in forum XML
Replies: 0
Last Post: 06-29-2005, 09:23 AM
-
Replies: 3
Last Post: 06-15-2002, 01:10 PM
-
By Tim in forum xml.announcements
Replies: 0
Last Post: 10-11-2001, 04:00 PM
-
By Tim Frost in forum xml.announcements
Replies: 0
Last Post: 04-02-2001, 10:53 AM
-
By Extensibility in forum web.announcements
Replies: 0
Last Post: 07-20-2000, 06:20 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks