0

I'm trying to load an XML file, I'm using the XML 6.0 reference library.

The error occurs in the "xDom.load" line ( see below ). What can the issue be?

Private Sub run() ' run the whole operation Dim http_req As http_req: Set http_req = New http_req Dim xDom As MSXML2.DOMDocument60 Dim url As String: url = "http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml" Set xDom = New MSXML2.DOMDocument60 xDom.Load = "http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml" Call find_ClassElement(xDom) End Sub 

1 Answer 1

2

I haven't used msxml since I did a brief stint in Delphi, but I would imagine Load is method call. You are trying to set the reference of Load to a string. Try

xDom.Load("http://www.ecb........") 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.