PDA

View Full Version : xml creation or manupulation not working on my system


advika
10-19-2005, 10:57 AM
Hi,
I am sending data from falsh to asp and in asp i am updating that data into xml file, it is not working,
Later i realized that any changes to xml file not working on my system.
I have tried simple example of creating xml file using asp.
it is also giving error.


<%
Dim objDom
Dim objRoot
Dim objChild1
Dim objChild2
Dim objPI

Set objDom = Server.CreateObject("Microsoft.XMLDOM")


'Document.
Set objRoot = objDom.createElement("rootElement")

objDom.appendChild objRoot

Set objChild1 = objDom.createElement("childElement1")
objRoot.appendChild objChild1

Set objChild2 = objDom.createElement("childElement2")
objRoot.appendChild objChild2

Set objPI = objDom.createProcessingInstruction("xml","version='1.0'")

objDom.insertBefore objPI, objDom.childNodes(0)

objDom.Save "c:\MyXMLDoc.xml"

%>

when the document is saved it should look like this :

<?xml version="1.0"?>
<rootElement>
<childElement1 />
<childElement2 />
</rootElement>

instead it is giving me following error:

Error Type:
msxml3.dll (0x80070005)
Access is denied.
/asp/manipulatingxml/rolodex6.asp, line 29


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

Page:
GET /asp/createxml.asp



I have IIS in my system, Asp is working fine, OS is Window XP.
even i have registered following dll: msxml3.dll

regsvr32 %windir%\system32\msxml3.dll
if i run above line it gives me successfull msg.

Anyone can help me.

Thank you for your time and consideration

Regards
advika

dejandozet
12-14-2005, 05:30 PM
Yes, set folder sharing on that folder you are using and it will be ok.
Glad to help [if I do].
Hi,
I am sending data from falsh to asp and in asp i am updating that data into xml file, it is not working,
Later i realized that any changes to xml file not working on my system.
I have tried simple example of creating xml file using asp.
it is also giving error.


<%
Dim objDom
Dim objRoot
Dim objChild1
Dim objChild2
Dim objPI

Set objDom = Server.CreateObject("Microsoft.XMLDOM")


'Document.
Set objRoot = objDom.createElement("rootElement")

objDom.appendChild objRoot

Set objChild1 = objDom.createElement("childElement1")
objRoot.appendChild objChild1

Set objChild2 = objDom.createElement("childElement2")
objRoot.appendChild objChild2

Set objPI = objDom.createProcessingInstruction("xml","version='1.0'")

objDom.insertBefore objPI, objDom.childNodes(0)

objDom.Save "c:\MyXMLDoc.xml"

%>

when the document is saved it should look like this :

<?xml version="1.0"?>
<rootElement>
<childElement1 />
<childElement2 />
</rootElement>

instead it is giving me following error:

Error Type:
msxml3.dll (0x80070005)
Access is denied.
/asp/manipulatingxml/rolodex6.asp, line 29


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

Page:
GET /asp/createxml.asp



I have IIS in my system, Asp is working fine, OS is Window XP.
even i have registered following dll: msxml3.dll

regsvr32 %windir%\system32\msxml3.dll
if i run above line it gives me successfull msg.

Anyone can help me.

Thank you for your time and consideration

Regards
advika

Cota
12-16-2005, 01:27 PM
Have you tried editing global.asp, comment out the MSXML3 constants and uncomment the MSXML4 constants?