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 March 2nd, 2006, 09:33 AM
Authorized User
Join Date: Feb 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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,xmlR oot,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
   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
      end if
   'response.Write xmldoc.xml
end sub

Similar Threads
Thread Thread Starter Forum Replies Last Post
"msxml3.dll error '80072ee7' kamn98 XML 5 June 21st, 2013 08:13 PM
msxml3.dll error '800c0008' a.verta Classic ASP XML 3 June 5th, 2008 10:27 AM
msxml3.dll error '800c0014' prakharbirla XML 0 March 24th, 2007 09:35 PM
msxml3.dll error '800c0014' Harry P XML 1 January 31st, 2007 11:18 AM
msxml3.dll error '80072f78' looc Classic ASP XML 3 September 24th, 2004 02:46 PM

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