Euvin
11/20/2011 6:51:00 PM
On Nov 20, 3:41 am, Jason Keats <jke...@melbpcDeleteThis.org.au>
wrote:
> Euvin wrote:
> > I am reading Access 2003 programming by example with VBA, XML, and ASP
> > I just trying to running this code, but it is not doing anything. I am
> > not getting errors. There seems nothing wrong with the code, but I
> > seem to be missing something.
>
> > thanks
>
> > Option Compare Database
> > Option Explicit
>
> > Sub ReadXMLDoc()
> > Dim xmldoc As MSXML2.DOMDocument50
> > Set xmldoc = New MSXML2.DOMDocument50
>
> > xmldoc.async = False
> > If xmldoc.Load("C:\Users\Euvin\Documents\Example.xml") Then
> > Debug.Print xmldoc.XML
> > Debug.Print xmldoc.Text
> > End If
> > End Sub
>
> If your debug statements display nothing, then the load failed.
>
> That can happen if the associated DTD file is missing - check for a
> DOCTYPE in your XML file.
>
> If you don't want to use a DTD, then delete that line, then try again.
>
> You should (probably) also be using MSXML 3.0 or 6.0, not 5.0.- Hide quoted text -
>
> - Show quoted text -
I think the issue is object browser. When I select DOMDocument40 under
Library it states: "no item found"
I have tried double clicking, right clicking, and nothing has
occured.
: