problem with xml component(s)



I have a component that runs fine on a server, but from my local
machine will not run. All it does is open an xml file. The line below
that is commented out is the original that runs fine and the
uncommented line is one I tried by setting a reference to my own local
msxml component. I have granted full access permissions to everyone
for the file but it still gets into the err.raise -11 portion. In
another vb program, I'm calling this code and right before it I use the
filesystemobject and I can open the file and read it. So, I'm stumped
as to what might be wrong. Anyone have any ideas of something else I
could try? thanks.

'Set xmlDoc = CreateObject("Msxml2.DOMDocument.3.0")
Set xmlDoc = New MSXML2.DOMDocument30
xmlDoc.async = False
IsOk = xmlDoc.Load(FilePath)
If Not IsOk Then
Err.Raise -11, "GetString", "Problem Opening Source"
Set xmlDoc = Nothing
Exit Function
End If

.



Relevant Pages

  • Re: problem with xml component(s)
    ... Tony Proctor wrote: ... All it does is open an xml file. ... Set xmlDoc = New MSXML2.DOMDocument30 ... If Not IsOk Then ...
    (microsoft.public.vb.general.discussion)
  • RE: About xml
    ... objDomDoc.Load sFullPath ... Dim xmlDoc ... Set xmlDoc = CreateObject ... How can I create/write into xml file from vba + access 2003? ...
    (microsoft.public.office.developer.vba)
  • Problem with script execution
    ... set xmlDoc = CreateObject ... Then all works OK and I get the contents of the XML file. ... I have installed the MSXML4 and the Internet Explorer tools. ...
    (microsoft.public.windows.inetexplorer.ie6.setup)